fixed unit production bug; unit is not emitted until space is clear.
This commit is contained in:
@@ -337,6 +337,10 @@ namespace OpenRa.Game
|
||||
}
|
||||
else
|
||||
{
|
||||
var productionPoint = (1 / 24f * producer.CenterLocation).ToInt2();
|
||||
if (UnitInfluence.GetUnitAt(productionPoint) != null)
|
||||
return;
|
||||
|
||||
unit = new Actor(name, (1 / 24f * producer.CenterLocation).ToInt2(), player);
|
||||
var mobile = unit.traits.Get<Mobile>();
|
||||
mobile.facing = 128;
|
||||
|
||||
Reference in New Issue
Block a user