mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Stop the gameplay from advancing a single frame on the pause screen in singleplayer (#596)
This commit is contained in:
parent
1f1683815e
commit
ab300a1844
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue