hedgewars/uGearsUtils.pas
changeset 11848 6a0d6b00dac8
parent 11847 38e7206a5df4
child 11867 f6d33710baff
equal deleted inserted replaced
11847:38e7206a5df4 11848:6a0d6b00dac8
  1590     PlaySound(sndMelonImpact, true)
  1590     PlaySound(sndMelonImpact, true)
  1591 end;
  1591 end;
  1592 
  1592 
  1593 function IsHogLocal(HH: PHedgehog): boolean;
  1593 function IsHogLocal(HH: PHedgehog): boolean;
  1594 begin
  1594 begin
  1595     IsHogLocal:= (not (HH^.Team^.ExtDriven or (HH^.BotLevel > 0))) or (HH^.Team^.Clan^.ClanIndex = LocalClan);
  1595     IsHogLocal:= (not (HH^.Team^.ExtDriven or (HH^.BotLevel > 0))) or (HH^.Team^.Clan^.ClanIndex = LocalClan) or (GameType = gmtDemo);
  1596 end;
  1596 end;
  1597 
  1597 
  1598 end.
  1598 end.