Do CI correctly. Still need to allow for mode in case of no teleports in ammo
authornemo
Mon, 08 Feb 2010 05:17:59 +0000
changeset 2763 f21d3ca74ef2
parent 2762 2fbc8d35eb52
child 2764 2613de505d8d
Do CI correctly. Still need to allow for mode in case of no teleports in ammo
hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Mon Feb 08 03:03:18 2010 +0000
+++ b/hedgewars/uTeams.pas	Mon Feb 08 05:17:59 2010 +0000
@@ -175,7 +175,7 @@
         Unplaced:= false;
 	    if Gear <> nil then 
            begin
-           Gear^.CollisionIndex:= -1;
+           DeleteCI(Gear);
            FindPlace(Gear, false, 0, LAND_WIDTH);
            if Gear <> nil then AddGearCI(Gear)
            end