1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

animate Baby Tortoise movement

This commit is contained in:
Zeno Rogue 2018-03-24 15:20:53 +01:00
parent aa3ecdd923
commit 30c2239333
2 changed files with 3 additions and 2 deletions

View File

@ -3232,6 +3232,7 @@ void moveEffect(cell *ct, cell *cf, eMonster m) {
if(cf && ct->item == itBabyTortoise && !cf->item) { if(cf && ct->item == itBabyTortoise && !cf->item) {
cf->item = itBabyTortoise; cf->item = itBabyTortoise;
ct->item = itNone; ct->item = itNone;
animateMovement(ct, cf, LAYER_BOAT);
tortoise::babymap[cf] = tortoise::babymap[ct]; tortoise::babymap[cf] = tortoise::babymap[ct];
tortoise::babymap.erase(ct); tortoise::babymap.erase(ct);
} }

View File

@ -4672,7 +4672,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
#endif #endif
if(it) { if(it) {
if(c->land == laWhirlwind && c->wall != waBoat) { if((c->land == laWhirlwind || c->item == itBabyTortoise) && c->wall != waBoat) {
double footphase = 0; double footphase = 0;
Vboat = &(Vboat0 = *Vboat); Vboat = &(Vboat0 = *Vboat);
applyAnimation(c, Vboat0, footphase, LAYER_BOAT); applyAnimation(c, Vboat0, footphase, LAYER_BOAT);