isn't desync fun\!

This commit is contained in:
Chris Forbes
2010-01-25 18:58:12 +13:00
parent 96cc1502d0
commit cbd15af334
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ namespace OpenRa.Mods.RA
{ {
public void OnInfiltrate(Actor self, Actor spy) public void OnInfiltrate(Actor self, Actor spy)
{ {
Game.world.LocalPlayer.PlayerActor.traits.Get<SonarPulsePower>().Give(1.0f); spy.Owner.PlayerActor.traits.Get<SonarPulsePower>().Give(1.0f);
} }
} }
} }

View File

@@ -42,7 +42,7 @@ namespace OpenRa.Mods.RA
public bool IsPathableCrush(UnitMovementType umt, Player player) public bool IsPathableCrush(UnitMovementType umt, Player player)
{ {
return !self.Info.Traits.Get<MineInfo>().AvoidFriendly || (player != self.World.LocalPlayer); return !self.Info.Traits.Get<MineInfo>().AvoidFriendly || (player != self.Owner);
} }
public bool IsCrushableBy(UnitMovementType umt, Player player) public bool IsCrushableBy(UnitMovementType umt, Player player)