hedgewars/uGearsUtils.pas
changeset 15052 1a754860b0e5
parent 14994 d9de740e194c
child 15146 6b7d92fa4912
equal deleted inserted replaced
15051:a9873c81b5e6 15052:1a754860b0e5
  1867         IsHogFacingLeft:= sign < 0;
  1867         IsHogFacingLeft:= sign < 0;
  1868 end;
  1868 end;
  1869 
  1869 
  1870 function IsHogLocal(HH: PHedgehog): boolean;
  1870 function IsHogLocal(HH: PHedgehog): boolean;
  1871 begin
  1871 begin
  1872     IsHogLocal:= (not (HH^.Team^.ExtDriven or (HH^.BotLevel > 0))) or (HH^.Team^.Clan^.ClanIndex = LocalClan) or (GameType = gmtDemo);
  1872     IsHogLocal:= (not (HH^.Team^.ExtDriven or (HH^.BotLevel > 0))) or (HH^.Team^.Clan^.LocalOrAlly) or (GameType = gmtDemo);
  1873 end;
  1873 end;
  1874 
  1874 
  1875 end.
  1875 end.