1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-08 06:59:55 +00:00

boats now erase rose waves when moved

This commit is contained in:
Zeno Rogue 2024-06-06 15:26:01 +02:00
parent 2fccfdf0c5
commit 59fe423728

View File

@ -425,6 +425,8 @@ EX void moveBoat(const movei& mi) {
changes.ccell(mi.s); changes.ccell(mi.s);
eWall x = mi.t->wall; mi.t->wall = mi.s->wall; mi.s->wall = x; eWall x = mi.t->wall; mi.t->wall = mi.s->wall; mi.s->wall = x;
mi.t->mondir = mi.rev_dir_or(NODIR); mi.t->mondir = mi.rev_dir_or(NODIR);
changes.map_value(rosemap, mi.t);
rosemap.erase(mi.t);
moveItem(mi.s, mi.t, false); moveItem(mi.s, mi.t, false);
animateMovement(mi, LAYER_BOAT); animateMovement(mi, LAYER_BOAT);
} }