Spy - don't reset exploration if team has GPS

This commit is contained in:
Curtis Shmyr
2012-05-02 11:40:10 -06:00
committed by Chris Forbes
parent 37f91542a9
commit 4778ef803e

View File

@@ -25,7 +25,13 @@ namespace OpenRA.Mods.RA
* - actually steal their exploration before resetting it
*/
if (self.World.LocalPlayer != null && self.World.LocalPlayer.Stances[self.Owner] == Stance.Ally)
{
var gpsWatcher = self.Owner.PlayerActor.TraitOrDefault<GpsWatcher>();
if (gpsWatcher != null && (gpsWatcher.Granted || gpsWatcher.GrantedAllies))
return;
self.Owner.Shroud.ResetExploration();
}
}
}
}