Fix screen switching
This commit is contained in:
@@ -176,7 +176,7 @@ void updatePlayerInput() {
|
||||
if (IsKeyReleased(input->mapping.backBtn)) {
|
||||
i32 selectedCount = ecs_query_entity_count(input->queries.selected);
|
||||
if (selectedCount == 0) {
|
||||
game->screen = SCREEN_PAUSE_MENU;
|
||||
setScreen(game, SCREEN_PAUSE_MENU);
|
||||
} else {
|
||||
ecs_remove_all(ECS, Selected);
|
||||
resetInputState(input);
|
||||
|
||||
Reference in New Issue
Block a user