Skip to content

Commit

Permalink
Merge pull request #4920 from myk002/myk_teleport
Browse files Browse the repository at this point in the history
clear unit bit when teleporting a unit that is not prone
  • Loading branch information
myk002 authored Sep 8, 2024
2 parents 546994a + bfd73cd commit e07ab4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Template for new versions:
- `gui/pathable`: fix hang when showing trade depot wagon access and a trade depot is submerged under water
- `gui/pathable`: fix representation of wagon paths over stairs and through doors
- DFHack state for a site is now properly saved when retiring a fort
- `gui/teleport`: fix issue when teleporting units that are not prone, resulting in later issues with phantom "cannot build here: unit blocking tile" messages

## Misc Improvements
- `sort`: can now search for stockpiles on the Places>Stockpile tab by name, number, or enabled item categories
Expand Down
2 changes: 1 addition & 1 deletion library/modules/Units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ bool Units::teleport(df::unit *unit, df::coord target_pos)
// This is potentially wrong, but the game will recompute this as needed
old_occ->bits.unit_grounded = false;
else
old_occ->bits.unit = true;
old_occ->bits.unit = false;

// If there's already somebody standing at the destination, then force the unit to lay down
if (new_occ->bits.unit)
Expand Down

0 comments on commit e07ab4c

Please sign in to comment.