fix placement 0.9.14.1
authornemo
Sun, 14 Nov 2010 12:53:33 -0500
branch0.9.14.1
changeset 4330 1e03ca5d4311
parent 4328 d1815568cd2d
child 4332 c55cb3bcab1e
fix placement
hedgewars/uAmmos.pas
--- a/hedgewars/uAmmos.pas	Sun Nov 14 20:35:39 2010 +0300
+++ b/hedgewars/uAmmos.pas	Sun Nov 14 12:53:33 2010 -0500
@@ -171,7 +171,10 @@
           if Hedgehogs[i].Gear <> nil then
              begin
              Hedgehogs[i].Ammo:= GetAmmoByNum(Hedgehogs[i].AmmoStore);
-             Hedgehogs[i].CurAmmoType:= amNothing;
+             if (GameFlags and gfPlaceHog) <> 0 then
+                Hedgehogs[i].CurAmmoType:= amTeleport
+             else
+                Hedgehogs[i].CurAmmoType:= amNothing
              end
       end
 end;