share/hedgewars/Data/Maps/Control/map.lua
changeset 15005 1b3d788e7350
parent 14990 c52aa7ba2e16
child 15129 a41b8b154f74
equal deleted inserted replaced
15004:2bf7b1ba12fe 15005:1b3d788e7350
   452 
   452 
   453 end
   453 end
   454 
   454 
   455 function onHogAttack(ammoType)
   455 function onHogAttack(ammoType)
   456 	-- Update TimeCounter after using extra time
   456 	-- Update TimeCounter after using extra time
   457 	if ammoTime == amExtraTime then
   457 	if ammoType == amExtraTime then
   458 		if (TimeCounter == 0) and (TurnTimeLeft > 0) then
   458 		if (TimeCounter == 0) and (TurnTimeLeft > 0) then
   459 			TimeCounter = TurnTimeLeft
   459 			TimeCounter = TurnTimeLeft
   460 		end
   460 		end
   461 		TimeCounter = TimeCounter + 30000
   461 		TimeCounter = TimeCounter + 30000
   462 	end
   462 	end