Correct interaction of cave and placement.
authornemo
Wed, 07 Apr 2010 03:29:38 +0000
changeset 3319 af0d256205c1
parent 3318 591c42242106
child 3320 506f7d6a82b3
Correct interaction of cave and placement.
hedgewars/uAmmos.pas
--- a/hedgewars/uAmmos.pas	Wed Apr 07 03:02:19 2010 +0000
+++ b/hedgewars/uAmmos.pas	Wed Apr 07 03:29:38 2010 +0000
@@ -344,7 +344,11 @@
         begin
         for a:= 0 to cMaxSlotAmmoIndex do
             with StoresList[i]^[slot, a] do
-                if (Propz and ammoprop_NotBorder) <> 0 then Count:= 0;
+                if (Propz and ammoprop_NotBorder) <> 0 then 
+                    begin
+                    Count:= 0;
+                    InitialCount:= 0
+                    end;
 
         PackAmmo(StoresList[i], slot)
         end;