share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 10289 c3a77ff02a23
parent 10228 947cadb40bc5
child 10292 1c6639b49afc
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Jun 12 19:40:45 2014 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Jun 12 20:47:11 2014 +0200
@@ -574,7 +574,7 @@
                         loc("NOT ENOUGH WAYPOINTS"),
                         loc("Place more waypoints using the 'Air Attack' weapon."), 2, 4000)
                         AddAmmo(CurrentHedgehog, amAirAttack, 4000)
-            ParseCommand("setweap " .. string.char(amAirAttack))
+            SetWeapon(amAirAttack)
                 end
         end