1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-23 15:36:59 +00:00

Fixed minor bugs with boats moving items

This commit is contained in:
Zeno Rogue 2017-08-18 02:21:50 +02:00
parent 3b154d5038
commit b39439a3ae

View File

@ -6484,10 +6484,11 @@ bool movepcto(int d, int subdir, bool checkonly) {
}
if(checkonly) return true;
if(c2->item && !cwt.c->item) moveItem(c2, cwt.c, false), boatmove = true;
placeWater(c2, cwt.c);
moveBoat(c2, cwt.c);
c2->mondir = neighborId(c2, cwt.c);
if(cwt.c->item) moveItem(cwt.c, c2, true), boatmove = true;
if(c2->item) boatmove = !boatmove;
goto boatjump;
}