From f0d536b7eedc89a1746c253c79d880d67a826d72 Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 9 Feb 2019 09:58:48 +0000 Subject: [PATCH] Fix NONET. I thought I did this already during development, but I guess it got broken near the end. --- src/d_clisrv.c | 2 ++ src/m_menu.c | 17 +++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 961c1e59..7516df2e 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -2211,8 +2211,10 @@ static void CL_ConnectToServer(boolean viams) } while (!(cl_mode == CL_CONNECTED && (client || (server && nodewaited <= pnumnodes)))); +#ifndef NONET if (netgame) F_StartWaitingPlayers(); +#endif DEBFILE(va("Synchronisation Finished\n")); displayplayer = consoleplayer; diff --git a/src/m_menu.c b/src/m_menu.c index d8b1c2d7..0e37765b 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -1830,7 +1830,6 @@ static menu_t SP_NightsGhostDef = NULL };*/ -#ifndef NONET // Multiplayer menu_t MP_MainDef = { @@ -1841,12 +1840,18 @@ menu_t MP_MainDef = M_DrawMPMainMenu, 42, 30, 0, - M_CancelConnect -}; -menu_t MP_ServerDef = MAPICONMENUSTYLE("M_MULTI", MP_ServerMenu, &MP_MainDef); -#endif -menu_t MP_OfflineServerDef = MAPICONMENUSTYLE("M_MULTI", MP_OfflineServerMenu, &MP_MainDef); #ifndef NONET + M_CancelConnect +#else + NULL +#endif +}; + +menu_t MP_OfflineServerDef = MAPICONMENUSTYLE("M_MULTI", MP_OfflineServerMenu, &MP_MainDef); + +#ifndef NONET +menu_t MP_ServerDef = MAPICONMENUSTYLE("M_MULTI", MP_ServerMenu, &MP_MainDef); + menu_t MP_ConnectDef = { "M_MULTI",