From afb7328aa4e3b48c3663e8c680dd70f706408c14 Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 28 Aug 2023 20:16:12 +0100 Subject: [PATCH] SV_SpawnServer: Register netgame-advertised servers with the MS This is done in a different location in the previous entry in the series, but the author of this commit couldn't find it. Since we're using the 2.2 codebase, it's been put where they have it instead. --- src/d_clisrv.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index bb051a2ef..3fc62490e 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -4226,6 +4226,11 @@ boolean SV_SpawnServer(void) I_NetOpenSocket(); } + if (cv_advertise.value) + { + RegisterServer(); + } + ourIP = 0; STUN_bind(GotOurIP); }