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:
parent
aa3ecdd923
commit
30c2239333
1
game.cpp
1
game.cpp
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user