# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1568551579 -7200
# Node ID b186e1f4c5eddb3ab51ed7f9a2a61eb6e8fbdcdf
# Parent  1c71406fc281a88c80995e41709cca8c2d6d4851
Racer: Make sure the waypoint placer always has 0 delay

diff -r 1c71406fc281 -r b186e1f4c5ed 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()