share/hedgewars/Data/Maps/Basketball/map.lua
changeset 3257 fff80d469185
parent 3240 e3b52d10b4c2
child 3264 3cf9d915cdb9
equal deleted inserted replaced
3256:b4fd1d197621 3257:fff80d469185
    95 end
    95 end
    96 
    96 
    97 function onGearDelete(gear)
    97 function onGearDelete(gear)
    98 	if not started then
    98 	if not started then
    99 		return
    99 		return
       
   100 	end
   100 	if (GetGearType(gear) == gtHedgehog) and CurrentHedgehog ~= nil then
   101 	if (GetGearType(gear) == gtHedgehog) and CurrentHedgehog ~= nil then
   101 		local clan = GetHogClan(CurrentHedgehog)
   102 		local clan = GetHogClan(CurrentHedgehog)
   102 		local s = GetHogName(gear) .. " " .. loc(drowning) .. "|" .. loc(team) .. " " .. (clan + 1) .. " "
   103 		local s = GetHogName(gear) .. " " .. loc(drowning) .. "|" .. loc(team) .. " " .. (clan + 1) .. " "
   103 		if GetHogClan(CurrentHedgehog) ~= GetHogClan(gear) then
   104 		if GetHogClan(CurrentHedgehog) ~= GetHogClan(gear) then
   104 			score[clan] = score[clan] + 1
   105 			score[clan] = score[clan] + 1