hedgewars/uGearsUtils.pas
changeset 15863 e111e5acde64
parent 15846 681db3039ad7
child 15864 4172debdff61
--- 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;