mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 20:29:17 +00:00
Fixed minor bugs with boats moving items
This commit is contained in:
parent
3b154d5038
commit
b39439a3ae
3
game.cpp
3
game.cpp
@ -6484,10 +6484,11 @@ bool movepcto(int d, int subdir, bool checkonly) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(checkonly) return true;
|
if(checkonly) return true;
|
||||||
|
if(c2->item && !cwt.c->item) moveItem(c2, cwt.c, false), boatmove = true;
|
||||||
placeWater(c2, cwt.c);
|
placeWater(c2, cwt.c);
|
||||||
moveBoat(c2, cwt.c);
|
moveBoat(c2, cwt.c);
|
||||||
c2->mondir = neighborId(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;
|
goto boatjump;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user