Skip to content

teleport does not properly adjust unit_grounded flags when teleporting a unit #5938

Description

@ab9rf

teleport incorrectly clears unit_grounded when there is another grounded unit in the tile from which a unit was teleported away. DF's own logic only clears the unit_grounded flag if there are no other grounded units in the same tile.

The current code acknowledges that this is incorrect in a comment and suggests that it's acceptable (// This is potentially wrong, but the game will recompute this as needed) but I would prefer for the tool to do the right thing here.

Originally posted by @ab9rf in #5924 (comment)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions