Stop the gameplay from advancing a single frame on the pause screen in singleplayer (#596)

This commit is contained in:
Radek Krzyśków 2024-12-31 14:01:49 +01:00 committed by GitHub
parent 1f1683815e
commit ab300a1844
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,6 @@
#include <stdio.h> #include <stdio.h>
#include "network_utils.h" #include "network_utils.h"
#include "game/camera.h"
#include "game/level_update.h" #include "game/level_update.h"
#include "game/mario_misc.h" #include "game/mario_misc.h"
#include "pc/mods/mods.h" #include "pc/mods/mods.h"
@ -54,7 +55,8 @@ const char* network_get_player_text_color_string(u8 localIndex) {
extern s16 gMenuMode; extern s16 gMenuMode;
bool network_check_singleplayer_pause(void) { bool network_check_singleplayer_pause(void) {
return gMenuMode != -1 && network_player_connected_count() == 1 && mods_get_all_pausable() && !gDjuiInPlayerMenu; return ((gMenuMode != -1) || (gCameraMovementFlags & CAM_MOVE_PAUSE_SCREEN)) &&
!gDjuiInPlayerMenu && network_player_connected_count() == 1 && mods_get_all_pausable();
} }
const char* network_discord_id_from_local_index(u8 localIndex) { const char* network_discord_id_from_local_index(u8 localIndex) {