--- a/share/hedgewars/Data/Maps/Basketball/map.lua Thu Apr 01 16:44:56 2010 +0000
+++ b/share/hedgewars/Data/Maps/Basketball/map.lua Thu Apr 01 16:46:44 2010 +0000
@@ -66,6 +66,8 @@
local score = {[0] = 0, [1] = 0, [2] = 0, [3] = 0, [4] = 0, [5] = 0}
+local started = false
+
function onGameInit()
GameFlags = gfSolidLand + gfBorder + gfInvulnerable + gfLowGravity
TurnTime = 20000
@@ -78,6 +80,7 @@
function onGameStart()
ShowMission(loc(caption), loc(subcaption), loc(goal), -amBaseballBat, 0);
+ started = true
end
function onGameTick()
@@ -92,6 +95,8 @@
end
function onGearDelete(gear)
+ if not started then
+ return
if (GetGearType(gear) == gtHedgehog) and CurrentHedgehog ~= nil then
local clan = GetHogClan(CurrentHedgehog)
local s = GetHogName(gear) .. " " .. loc(drowning) .. "|" .. loc(team) .. " " .. (clan + 1) .. " "