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:
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) {
|
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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user