mirror of https://github.com/OpenTTD/OpenTTD
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>pull/12682/head
parent
460fab920c
commit
486af1a6fc
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue