Fix: [Admin] #12411 Send Network Welcome Packet to admin port after game creation completed

WelcomeAll moved into NetworkOnGameStart

Signed-off-by: Muxy <muxy@goulp.net>
This commit is contained in:
Muxy 2024-05-12 21:11:59 +02:00 committed by rubidium42
parent 460fab920c
commit 486af1a6fc

View File

@ -936,9 +936,6 @@ bool NetworkServerStart()
/* if the server is dedicated ... add some other script */ /* if the server is dedicated ... add some other script */
if (_network_dedicated) IConsoleCmdExec("exec scripts/on_dedicated.scr 0"); if (_network_dedicated) IConsoleCmdExec("exec scripts/on_dedicated.scr 0");
/* welcome possibly still connected admins - this can only happen on a dedicated server. */
if (_network_dedicated) ServerNetworkAdminSocketHandler::WelcomeAll();
return true; return true;
} }
@ -969,6 +966,9 @@ void NetworkOnGameStart()
} }
ShowClientList(); ShowClientList();
} else {
/* welcome possibly still connected admins - this can only happen on a dedicated server. */
ServerNetworkAdminSocketHandler::WelcomeAll();
} }
} }