TrophyRace: Fix game never eliminating any hogs after a hog skipped or ran out of time
Warning: This commit _might_ invalidate past records, but I'm not sure if
this is actually the case. Note that only the eliminiation part of the
script is touched, not the actual race logic.
Even if records are actually broken by this, I and sheepluva have decided that
it's more imporant to fix this very, VERY stupid and old bug than to preserve
records.
--- a/ChangeLog.txt Sat Sep 30 20:31:07 2017 +0200
+++ b/ChangeLog.txt Sat Sep 30 23:52:08 2017 +0200
@@ -239,6 +239,7 @@
+ Rewrote some help texts in basic rope training
+ Graphical effect (black bars) while in cut scenes
+ Change description and icon for baseball bat in Knockball mission map
+ * TrophyRace: Fix hedgehogs not being eliminated anymore after one hog skipped or ran out of time
* Portal Mind Challenge was cleaned up and reworked (especially less awful wording)
* Fixed Target Practice missions getting stuck when a target dropped into water
* Fixed mistakes and bad wording of strings in several missions, scripts and campaigns
--- a/share/hedgewars/Data/Maps/TrophyRace/map.lua Sat Sep 30 20:31:07 2017 +0200
+++ b/share/hedgewars/Data/Maps/TrophyRace/map.lua Sat Sep 30 23:52:08 2017 +0200
@@ -168,9 +168,9 @@
--Place a grenade to make inactive slowest hog active
x, y = GetGearPosition(worsthog)
AddGear(x, y, gtShell, 0, 0, 0, 0)
- worsttime = 0
- worsthog = nil
end
+ worsttime = 0
+ worsthog = nil
end
for i=0, ClansCount -1 do