Be sure to initialise count for teleport in placement mode
authornemo
Sun, 21 Feb 2010 21:55:34 +0000
changeset 2837 6a1c18598b2c
parent 2836 36b1766ad85c
child 2838 4a79fd4f04a8
Be sure to initialise count for teleport in placement mode
hedgewars/uAmmos.pas
--- a/hedgewars/uAmmos.pas	Sun Feb 21 19:03:46 2010 +0000
+++ b/hedgewars/uAmmos.pas	Sun Feb 21 21:55:34 2010 +0000
@@ -74,6 +74,7 @@
        Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]]:= Ammoz[a].Ammo;
 
        Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].Count:= AMMO_INFINITE;
+       Ammo^[Ammoz[a].Slot, mi[Ammoz[a].Slot]].InitialCount:= cnts[a];
 
        inc(mi[Ammoz[a].Slot])
        end