Racer: Make sure the waypoint placer always has 0 delay
authorWuzzy <Wuzzy2@mail.ru>
Sun, 15 Sep 2019 14:46:19 +0200
changeset 15418 b186e1f4c5ed
parent 15417 1c71406fc281
child 15419 09b63f9032f4
Racer: Make sure the waypoint placer always has 0 delay
share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sun Sep 15 14:38:42 2019 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sun Sep 15 14:46:19 2019 +0200
@@ -789,7 +789,7 @@
                         end
                         ShowMission(loc("Racer"),
                         loc("Waypoint placement phase"), infoString, -amAirAttack, 4000)
-                        AddAmmo(CurrentHedgehog, amAirAttack, 4000)
+                        AddAmmo(CurrentHedgehog, amAirAttack, AMMO_INFINITE)
                         SetWeapon(amAirAttack)
                         -- Bots skip waypoint placement
                         if GetHogLevel(CurrentHedgehog) ~= 0 then
@@ -837,6 +837,7 @@
         AddAmmo(CurrentHedgehog, amMineStrike, 0)
         AddAmmo(CurrentHedgehog, amNapalm, 0)
         AddAmmo(CurrentHedgehog, amPiano, 0)
+        SetAmmoDelay(amAirAttack, 0)
 end
 
 function onGameTick20()