Mario: fix Mario getting stuck in the floor when eating a mushroom
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
92a30b8c51
commit
41ba43ed93
@ -249,6 +249,7 @@ void Mario::setBig() {
|
|||||||
change_dir_src = hasFire() ? &MARIO_CHANGE_DIR_FIRE_SRC : &MARIO_CHANGE_DIR_BIG_SRC;
|
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;
|
jump_src = hasFire() ? &MARIO_JUMP_FIRE_SRC : &MARIO_JUMP_BIG_SRC;
|
||||||
walk_anim = hasFire() ? &MARIO_WALK_FIRE_ANIM : &MARIO_WALK_BIG_ANIM;
|
walk_anim = hasFire() ? &MARIO_WALK_FIRE_ANIM : &MARIO_WALK_BIG_ANIM;
|
||||||
|
setPos(getPos() - SDLPP::Vec2D<double>(0, BLOCK_SIZE));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mario::unsetBig() {
|
void Mario::unsetBig() {
|
||||||
|
Loading…
Reference in New Issue
Block a user