Rewrite ActorInit queries.

This commit is contained in:
Paul Chote
2020-05-24 22:28:16 +01:00
committed by teinarss
parent 626b40f31b
commit 7c6ec577dc
66 changed files with 332 additions and 265 deletions

View File

@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
public FallsToEarth(ActorInitializer init, FallsToEarthInfo info)
{
this.info = info;
effectiveOwner = init.Contains<EffectiveOwnerInit>() ? init.Get<EffectiveOwnerInit, Player>() : init.Self.Owner;
effectiveOwner = init.GetValue<EffectiveOwnerInit, Player>(info, init.Self.Owner);
}
// We return init.Self.Owner if there's no effective owner