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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user