Skip to content

Commit

Permalink
game: Disable network menu on non-debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj committed Dec 9, 2024
1 parent ab67a42 commit 3612a5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/game/scenes/mainmenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ int mainmenu_create(scene *scene) {
component_action(guiframe_find(local->frame, NETWORK_BUTTON_ID), ACT_PUNCH);
component_action(guiframe_find(local->frame, NETWORK_LOBBY_BUTTON_ID), ACT_PUNCH);
}
#ifndef DEBUGMODE
if(scene->gs->net_mode == NET_MODE_NONE) {
component_disable(guiframe_find(local->frame, NETWORK_BUTTON_ID), 1);
}
#endif

// clear it, so this only happens the first time
scene->gs->net_mode = NET_MODE_NONE;
Expand Down

0 comments on commit 3612a5c

Please sign in to comment.