Actually fix the desync issues

This commit is contained in:
Scott_NZ
2012-08-22 19:27:17 +12:00
committed by Chris Forbes
parent 4b36a9bf7f
commit dbbe026b88

View File

@@ -222,10 +222,6 @@ namespace OpenRA.Mods.RA.Missions
void BuildSovietUnits() void BuildSovietUnits()
{ {
if (!Game.IsHost)
{
return;
}
var powerManager = soviets.PlayerActor.Trait<PowerManager>(); var powerManager = soviets.PlayerActor.Trait<PowerManager>();
if (powerManager.ExcessPower < 0) if (powerManager.ExcessPower < 0)
{ {
@@ -289,7 +285,11 @@ namespace OpenRA.Mods.RA.Missions
{ {
return; return;
} }
world.IssueOrder(Order.StartProduction(queue.self, unit, 1)); var order = Order.StartProduction(queue.self, unit, 1);
if (Game.IsHost)
{
world.IssueOrder(order);
}
} }
void SpawnSignalFlare() void SpawnSignalFlare()