fix gps desync
This commit is contained in:
@@ -11,15 +11,9 @@ namespace OpenRa.Game.SupportPowers
|
|||||||
public void OnFireNotification(Actor a, int2 xy) { }
|
public void OnFireNotification(Actor a, int2 xy) { }
|
||||||
public void IsChargingNotification(SupportPower p) { }
|
public void IsChargingNotification(SupportPower p) { }
|
||||||
public void IsReadyNotification(SupportPower p)
|
public void IsReadyNotification(SupportPower p)
|
||||||
{
|
|
||||||
// Power is auto-activated
|
|
||||||
Activate(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Activate(SupportPower p)
|
|
||||||
{
|
{
|
||||||
var launchSite = Game.world.Actors
|
var launchSite = Game.world.Actors
|
||||||
.FirstOrDefault( a => a.Owner == p.Owner && a.traits.Contains<GpsLaunchSite>() );
|
.FirstOrDefault(a => a.Owner == p.Owner && a.traits.Contains<GpsLaunchSite>());
|
||||||
|
|
||||||
if (launchSite == null)
|
if (launchSite == null)
|
||||||
return;
|
return;
|
||||||
@@ -32,5 +26,7 @@ namespace OpenRa.Game.SupportPowers
|
|||||||
|
|
||||||
p.FinishActivate();
|
p.FinishActivate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Activate(SupportPower p) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user