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)
teleportincorrectly clearsunit_groundedwhen there is another grounded unit in the tile from which a unit was teleported away. DF's own logic only clears theunit_groundedflag 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)