# HG changeset patch
# User nemo
# Date 1289757213 18000
# Node ID 1e03ca5d431152575ea50ee21342cb3d55392026
# Parent  d1815568cd2da45d8b986cc6f1eb46c8b489cd1f
fix placement

diff -r d1815568cd2d -r 1e03ca5d4311 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;