mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
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:
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
Block a user