)&& !(controller->pressed(Controller::UP))) // prevent skipping if jump with up is enabled
scroll += SCROLL;
if(controller->pressed(Controller::PAUSE_MENU)) {
- g_screen_manager->exit_screen(std::unique_ptr<ScreenFade>(new FadeOut(0.5)));
+ g_screen_manager->pop_screen(std::unique_ptr<ScreenFade>(new FadeOut(0.5)));
}
scroll += speed * elapsed_time;
if(y < 0 && !fading ) {
fading = true;
- g_screen_manager->exit_screen(std::unique_ptr<ScreenFade>(new FadeOut(0.5)));
+ g_screen_manager->pop_screen(std::unique_ptr<ScreenFade>(new FadeOut(0.5)));
}
}