Aircraft.ReserveSpawnBuilding style fixes

This commit is contained in:
reaperrr
2016-09-29 21:21:34 +02:00
parent 888d7c638f
commit 6571f926fb

View File

@@ -266,12 +266,12 @@ namespace OpenRA.Mods.Common.Traits
protected void ReserveSpawnBuilding()
{
/* HACK: not spawning in the air, so try to assoc. with our afld. */
var afld = GetActorBelow();
if (afld == null)
// HACK: Not spawning in the air, so try to associate with our spawner.
var spawner = GetActorBelow();
if (spawner == null)
return;
MakeReservation(afld);
MakeReservation(spawner);
}
public void MakeReservation(Actor target)