Skip to content

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

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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