mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-19 23:04:08 +00:00
fixed Tentacle riding
This commit is contained in:
parent
e01411f98f
commit
71ae45c81e
10
game.cpp
10
game.cpp
@ -4814,12 +4814,12 @@ EX void moveWorm(cell *c) {
|
|||||||
if(id) {
|
if(id) {
|
||||||
cell *c2 = c, *c3 = c2;
|
cell *c2 = c, *c3 = c2;
|
||||||
while(c2->monst == moTentacletail || c2->monst == moTentacleGhost) {
|
while(c2->monst == moTentacletail || c2->monst == moTentacleGhost) {
|
||||||
auto mi = moveimon(c2);
|
auto mim = moveimon(c2).rev();
|
||||||
if(!mi.proper()) return;
|
if(!mim.proper()) return;
|
||||||
c3 = c2, c2 = mi.t;
|
c3 = c2, c2 = mim.s;
|
||||||
if(c3->monst != moTentacleGhost && c2->monst != moTentacleGhost)
|
if(c3->monst != moTentacleGhost && c2->monst != moTentacleGhost)
|
||||||
mountmove(mi, true);
|
mountmove(mim, true);
|
||||||
animateMovement(mi.rev(), LAYER_BIG);
|
animateMovement(mim, LAYER_BIG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user