hedgewars/uCollisions.pas
changeset 5572 47cc28299baa
parent 5569 8313952b2811
child 5750 6bbf7aee2cdf
equal deleted inserted replaced
5570:a1eb7555f439 5572:47cc28299baa
    82 inc(Count);
    82 inc(Count);
    83 // mines are the easiest way to overflow collision
    83 // mines are the easiest way to overflow collision
    84 if (Count > (MAXRECTSINDEX-20)) then
    84 if (Count > (MAXRECTSINDEX-20)) then
    85     begin
    85     begin
    86     t:= GearsList;
    86     t:= GearsList;
    87     while (t <> nil) and (t^.Kind <> gtMine) do t:= t^.NextGear;
    87     while (t <> nil) and (t^.Kind <> gtMine) do 
    88     if (t <> nil) and (t^.Kind = gtMine) then DeleteGear(t)
    88         t:= t^.NextGear;
       
    89     if (t <> nil) then DeleteGear(t)
    89     end;
    90     end;
    90 end;
    91 end;
    91 
    92 
    92 procedure DeleteCI(Gear: PGear);
    93 procedure DeleteCI(Gear: PGear);
    93 begin
    94 begin