1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +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) {
cf->item = itBabyTortoise;
ct->item = itNone;
animateMovement(ct, cf, LAYER_BOAT);
tortoise::babymap[cf] = tortoise::babymap[ct];
tortoise::babymap.erase(ct);
}

View File

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