ASA, ice02: Fix recorded time being 6 seconds more than reality
authorWuzzy <Wuzzy2@mail.ru>
Sat, 29 Sep 2018 21:59:36 +0200
changeset 13814 25de751feb02
parent 13813 8d1c54c684a8
child 13815 bf8c454a9f93
ASA, ice02: Fix recorded time being 6 seconds more than reality
ChangeLog.txt
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua
--- a/ChangeLog.txt	Sat Sep 29 20:56:55 2018 +0200
+++ b/ChangeLog.txt	Sat Sep 29 21:59:36 2018 +0200
@@ -93,6 +93,7 @@
  + A Space Adventure, final mission: Terrain types are easier to distinguish
  * A Space Adventure, Searching in the Dust: Fix display error when destroying device crate
  * A Space Adventure, Searching in the Dust: Don't take away control right above the pit near Sandy
+ * A Space Adventure, Hard Flying: Fix incorrect recorded time, was 6 seconds more than reality
  * A Space Adventure: Fix clan membership of PAotH in main Death Planet mission
  * A Space Adventure, final mission: Don't say "Missed" or "Yes, Sir!" when inappropriate
  * The Great Escape: Infinite attack mode did not work
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua	Sat Sep 29 20:56:55 2018 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua	Sat Sep 29 21:59:36 2018 +0200
@@ -281,9 +281,9 @@
 			SetVisualGearValues(wp.gear2, wp.x,wp.y, 20, 200, 0, 0, 100, radius - 6, 2, GREEN)
 			-- Give extra time, if needed
 			if TurnTimeLeft <= 16000 then
-				SetTurnTimeLeft(TurnTimeLeft + 6000)
-				totalTime = totalTime + 6000
 				if currentWaypoint ~= 1 then
+					SetTurnTimeLeft(TurnTimeLeft + 6000)
+					totalTime = totalTime + 6000
 					PlaySound(sndExtraTime)
 					AnimCaption(hero.gear, loc("6 more seconds added to the clock"), 4000)
 				end