Restrict IActorPreviewInitInfo to ActorInit.

This commit is contained in:
Paul Chote
2020-05-30 18:15:55 +01:00
committed by reaperrr
parent b856613194
commit ae7cfa56b7
7 changed files with 7 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Boolean expression defining the condition under which this actor cannot be nudged by other actors.")]
public readonly BooleanExpression ImmovableCondition = null;
IEnumerable<object> IActorPreviewInitInfo.ActorPreviewInits(ActorInfo ai, ActorPreviewType type)
IEnumerable<ActorInit> IActorPreviewInitInfo.ActorPreviewInits(ActorInfo ai, ActorPreviewType type)
{
yield return new FacingInit(PreviewFacing);
}