X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftitle.cpp;h=08259e870fd0e4d460f7fb07c1dbb23fddddd2aa;hb=8372bc7834408184195e060a3f9bfef90b2365b6;hp=4b4d62ac8edef068a7aed3b7f9103ff08e70124c;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/title.cpp b/src/title.cpp index 4b4d62ac8..08259e870 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -233,7 +233,7 @@ TitleScreen::make_tux_jump() // Check if we should press the jump button bool randomJump = !randomWaitTimer.started(); bool notMoving = (fabsf(dx) + fabsf(dy)) < 0.1; - bool pathBlocked = !sector->is_free_space(lookahead); + bool pathBlocked = !sector->is_free_of_statics(lookahead); if (!controller->released(Controller::JUMP) && (notMoving || pathBlocked || randomJump)) { float jumpDuration;