hedgewars/uGearsRender.pas
changeset 10560 9f09196d92a6
parent 10547 cc439790ebae
child 10562 3388822b3914
equal deleted inserted replaced
10556:c4ca0fc00c3b 10560:9f09196d92a6
   622             end
   622             end
   623         else
   623         else
   624 
   624 
   625         if ((Gear^.State and gstAnimation) <> 0) then
   625         if ((Gear^.State and gstAnimation) <> 0) then
   626             begin
   626             begin
   627             if (TWave(Gear^.Tag) < Low(TWave)) or (TWave(Gear^.Tag) > High(TWave)) then
   627             if (Gear^.Tag < LongInt(ord(Low(TWave)))) or (Gear^.Tag > LongInt(ord(High(TWave)))) then
   628                 begin
   628                 begin
   629                 Gear^.State:= Gear^.State and (not gstAnimation);
   629                 Gear^.State:= Gear^.State and (not gstAnimation);
   630                 end
   630                 end
   631             else
   631             else
   632                 begin
   632                 begin