Fix Racer ghost not resetting properly after a skip (bug 565)
authorWuzzy <Wuzzy2@mail.ru>
Thu, 10 Jan 2019 23:10:20 +0100
changeset 14569 c572eb57dd2d
parent 14568 90893b397933
child 14570 ca27e4cd15fd
Fix Racer ghost not resetting properly after a skip (bug #565)
ChangeLog.txt
share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
--- a/ChangeLog.txt	Thu Jan 10 21:24:32 2019 +0100
+++ b/ChangeLog.txt	Thu Jan 10 23:10:20 2019 +0100
@@ -18,6 +18,7 @@
  + The Specialists: Unlock game scheme
  + The Specialists: Add script parameter support to set custom specialists order
  * Balanced Random Weapon: Fix Lua errors after using Time Box
+ * Racer: Fix racer ghost not getting reset after a skip
  * King Mode: Fix team sometimes not being killed properly if king drowned
  * King Mode: Kill resurrected minions if king is not alive
 
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Jan 10 21:24:32 2019 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Jan 10 23:10:20 2019 +0100
@@ -834,6 +834,7 @@
         trackTime = 0
 
         currCount = 0 -- hopefully this solves problem
+        fastIndex = 0
         AddAmmo(CurrentHedgehog, amAirAttack, 0)
         gTimer = 0