# HG changeset patch # User Wuzzy # Date 1558051724 -7200 # Node ID 0ebecd424fc77a526f1b8f40bfccf4c23ccf15ea # Parent 932f1375a5c7bccb944db0fe501d9a913cfac53a Control (style): Fix scoring breaking after using extra time diff -r 932f1375a5c7 -r 0ebecd424fc7 share/hedgewars/Data/Maps/Control/map.lua --- a/share/hedgewars/Data/Maps/Control/map.lua Fri May 17 02:00:29 2019 +0200 +++ b/share/hedgewars/Data/Maps/Control/map.lua Fri May 17 02:08:44 2019 +0200 @@ -426,6 +426,16 @@ end +function onHogAttack(ammoType) + -- Update TimeCounter after using extra time + if ammoTime == amExtraTime then + if (TimeCounter == 0) and (TurnTimeLeft > 0) then + TimeCounter = TurnTimeLeft + end + TimeCounter = TimeCounter + 30000 + end +end + function InABetterPlaceNow(gear) for i = 0, (numhhs-1) do if gear == hhs[i] then