# HG changeset patch # User belphegorr # Date 1342824454 -10800 # Node ID 566bdf2f023ba158a4ebfb6c24148c680cf10f7d # Parent 93cf6b3b89be57a08f8ead31cc4cd2fe1a44538e Modified DrawGear so that it doesn't draw the gear when it has message gmRemoveFromList (it was causing havoc when I used HideHog as it could not access the position of the hog) diff -r 93cf6b3b89be -r 566bdf2f023b hedgewars/uGears.pas --- a/hedgewars/uGears.pas Mon Jul 16 20:56:55 2012 +0300 +++ b/hedgewars/uGears.pas Sat Jul 21 01:47:34 2012 +0300 @@ -556,7 +556,7 @@ Gear:= GearsList; while Gear <> nil do begin - if Gear^.State and gstInvisible = 0 then + if (Gear^.State and gstInvisible = 0) and (Gear^.Message and gmRemoveFromList = 0) then begin x:= hwRound(Gear^.X) + WorldDx; y:= hwRound(Gear^.Y) + WorldDy;