remove the collision addition for hogs again.
authornemo
Fri, 01 Sep 2017 11:24:18 -0400
changeset 12450 8e32d540dab5
parent 12449 8c5475bb4db7
child 12451 30da743f118b
remove the collision addition for hogs again.
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Thu Aug 10 08:13:37 2017 -0400
+++ b/hedgewars/uGears.pas	Fri Sep 01 11:24:18 2017 -0400
@@ -885,7 +885,7 @@
                                     FindPlace(Gear, false, t, t + playWidth div ClansCount, true);// could make Gear == nil;
                                 if Gear <> nil then
                                     begin
-                                    AddCI(Gear);
+                                    //AddCI(Gear);  uncomment if new hogs should be able to spawn on top of old ones.
                                     Gear^.Pos:= GetRandom(49);
                                     // unless the world is wrapping, make outter teams face to map center
                                     if (WorldEdge <> weWrap) and ((p = 0) or (p = ClansCount - 1)) then
@@ -920,7 +920,7 @@
             FindPlace(ar[i]^.Gear, false, leftX, rightX, true);
         if ar[i]^.Gear <> nil then
             begin
-            AddCI(ar[i]^.Gear);
+            //AddCI(ar[i]^.Gear); uncomment if new hogs should be able to spawn on top of old ones
             ar[i]^.Gear^.dX.isNegative:= hwRound(ar[i]^.Gear^.X) > leftX + playWidth div 2;
             ar[i]^.Gear^.Pos:= GetRandom(19)
             end;