hedgewars/uGears.pas
changeset 7257 566bdf2f023b
parent 7181 0791c1f2734c
child 7411 efc75c2d3be9
equal deleted inserted replaced
7255:93cf6b3b89be 7257:566bdf2f023b
   554     x, y: LongInt;
   554     x, y: LongInt;
   555 begin
   555 begin
   556 Gear:= GearsList;
   556 Gear:= GearsList;
   557 while Gear <> nil do
   557 while Gear <> nil do
   558     begin
   558     begin
   559     if Gear^.State and gstInvisible = 0 then
   559     if (Gear^.State and gstInvisible = 0) and (Gear^.Message and gmRemoveFromList = 0) then
   560         begin
   560         begin
   561         x:= hwRound(Gear^.X) + WorldDx;
   561         x:= hwRound(Gear^.X) + WorldDx;
   562         y:= hwRound(Gear^.Y) + WorldDy;
   562         y:= hwRound(Gear^.Y) + WorldDy;
   563         RenderGear(Gear, x, y);
   563         RenderGear(Gear, x, y);
   564         end;
   564         end;