1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 09:17:57 +00:00

simplified the boat logic

This commit is contained in:
Zeno Rogue
2024-04-09 02:34:30 +02:00
parent 4d761385ac
commit 9807b1b3ba
2 changed files with 6 additions and 14 deletions

View File

@@ -420,6 +420,8 @@ EX bool canPushStatueOn(cell *c, flagtype flags) {
}
EX void moveBoat(const movei& mi) {
changes.ccell(mi.t);
changes.ccell(mi.s);
eWall x = mi.t->wall; mi.t->wall = mi.s->wall; mi.s->wall = x;
mi.t->mondir = mi.rev_dir_or(NODIR);
moveItem(mi.s, mi.t, false);