Mario: fix Mario getting stuck in the floor when eating a mushroom
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
zv0n 2022-11-12 21:42:25 +01:00
parent 92a30b8c51
commit 41ba43ed93

View File

@ -249,6 +249,7 @@ void Mario::setBig() {
change_dir_src = hasFire() ? &MARIO_CHANGE_DIR_FIRE_SRC : &MARIO_CHANGE_DIR_BIG_SRC;
jump_src = hasFire() ? &MARIO_JUMP_FIRE_SRC : &MARIO_JUMP_BIG_SRC;
walk_anim = hasFire() ? &MARIO_WALK_FIRE_ANIM : &MARIO_WALK_BIG_ANIM;
setPos(getPos() - SDLPP::Vec2D<double>(0, BLOCK_SIZE));
}
void Mario::unsetBig() {