diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/game.c | 2 | ||||
| -rw-r--r-- | src/overlay.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -39,6 +39,8 @@ static void client_on_disconnect() global_state.state = GAMESTATE_PLAYING; current_menu_state = MENU_STATE_MAIN; network_client_close(global_state.client); + global_state.server = 0; + global_state.client = 0; } bool connect_to_server(char* ip, char* port) { diff --git a/src/overlay.c b/src/overlay.c index ee66083..69a5a37 100644 --- a/src/overlay.c +++ b/src/overlay.c @@ -297,6 +297,9 @@ static void draw_ingame_menu(platform_window* window) else { network_client_close(global_state.client); } + + global_state.server = 0; + global_state.client = 0; } } |
