hedgewars/uGearsUtils.pas
changeset 15052 1a754860b0e5
parent 14994 d9de740e194c
child 15146 6b7d92fa4912
--- a/hedgewars/uGearsUtils.pas	Sat May 25 18:18:42 2019 +0300
+++ b/hedgewars/uGearsUtils.pas	Sun May 26 14:16:35 2019 +0200
@@ -1869,7 +1869,7 @@
 
 function IsHogLocal(HH: PHedgehog): boolean;
 begin
-    IsHogLocal:= (not (HH^.Team^.ExtDriven or (HH^.BotLevel > 0))) or (HH^.Team^.Clan^.ClanIndex = LocalClan) or (GameType = gmtDemo);
+    IsHogLocal:= (not (HH^.Team^.ExtDriven or (HH^.BotLevel > 0))) or (HH^.Team^.Clan^.LocalOrAlly) or (GameType = gmtDemo);
 end;
 
 end.