Skip to content

Spawner code does not rotate the exit offset along with the facing. #98

@GraionDilach

Description

@GraionDilach

var spawnOffset = exit == null ? WVec.Zero : exit.Info.SpawnOffset;
slave.Trait<IPositionable>().SetVisualPosition(slave, centerPosition + spawnOffset);
var location = self.World.Map.CellContaining(centerPosition + spawnOffset);

The most worthwhile refactor sounds like to turn SetSpawnedFacing into a function returning this value because it already does the syncing between the spawner and the spawnee.

Related: OpenRA/ra2#719 (which shares this block).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions