Follow airplane gear on spawn
authorWuzzy <Wuzzy2@mail.ru>
Sun, 05 Jul 2020 20:36:27 +0200
changeset 15699 785c1af0bf87
parent 15698 6de74494b8a5
child 15700 e933b1dc302d
Follow airplane gear on spawn
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Sun Jul 05 20:29:37 2020 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Sun Jul 05 20:36:27 2020 +0200
@@ -3299,6 +3299,9 @@
         Gear^.Karma := 0;
         end;
 
+    if (GameFlags and gfInfAttack) = 0 then
+        FollowGear:= Gear;
+
 end;
 
 ////////////////////////////////////////////////////////////////////////////////