Skip to content

Commit 0074b46

Browse files
committed
worldmap: Disallow pausing if level starting
Otherwise, you could press escape while the level transition was happening, which resorted in all sorts of silly behavior. Signed-off-by: Swagtoy <me@ow.swag.toys>
1 parent bbbc29c commit 0074b46

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/worldmap/worldmap.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ WorldMap::process_input(const Controller& controller)
216216
}
217217
}
218218

219-
if (controller.pressed_any(Control::START, Control::ESCAPE))
219+
if (controller.pressed_any(Control::START, Control::ESCAPE) &&
220+
!(m_in_world_select || m_in_level))
220221
{
221222
on_menu_button_press(MenuStorage::WORLDMAP_MENU);
222223
}

0 commit comments

Comments
 (0)