# HG changeset patch # User nemo # Date 1650998121 14400 # Node ID e111e5acde646f3cc023742844cd6d0886b1d717 # Parent 8553c51a9ec890c9b365cf6093b23a520a92039e make unplaced hogs a bit less interactive diff -r 8553c51a9ec8 -r e111e5acde64 hedgewars/uGearsHandlersMess.pas --- a/hedgewars/uGearsHandlersMess.pas Wed Apr 20 15:35:48 2022 +0200 +++ b/hedgewars/uGearsHandlersMess.pas Tue Apr 26 14:35:21 2022 -0400 @@ -2201,7 +2201,7 @@ for t:= 0 to Pred(TeamsCount) do with TeamsArray[t]^ do for i:= 0 to cMaxHHIndex do - if (Hedgehogs[i].Gear <> nil) and (Hedgehogs[i].Effects[heFrozen] = 0) then + if (not Hedgehogs[i].Unplaced) and (Hedgehogs[i].Gear <> nil) and (Hedgehogs[i].Effects[heFrozen] = 0) and ((Hedgehogs[i].Gear^.State and gstInvisible) = 0) then begin tmpG:= Hedgehogs[i].Gear; tX:=Gear^.X-tmpG^.X; diff -r 8553c51a9ec8 -r e111e5acde64 hedgewars/uGearsUtils.pas --- a/hedgewars/uGearsUtils.pas Wed Apr 20 15:35:48 2022 +0200 +++ b/hedgewars/uGearsUtils.pas Tue Apr 26 14:35:21 2022 -0400 @@ -1093,7 +1093,7 @@ with TeamsArray[j]^ do for i:= 0 to cMaxHHIndex do with Hedgehogs[i] do - if (Gear <> nil) and (Gear <> exclude) then + if (not Unplaced) and (Gear <> nil) and (Gear <> exclude) then begin // code duplication - could throw into an inline function I guess dX := X - Gear^.X;