mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
update server info for connected clients if map or gametype changes. Closes #108
This commit is contained in:
parent
a3545b06b4
commit
2104835d77
|
@ -1078,6 +1078,7 @@ int CServer::Run()
|
|||
m_CurrentGameTick = 0;
|
||||
Kernel()->ReregisterInterface(GameServer());
|
||||
GameServer()->OnInit();
|
||||
UpdateServerInfo();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -984,6 +984,8 @@ void CGameContext::OnInit(/*class IKernel *pKernel*/)
|
|||
else
|
||||
m_pController = new CGameControllerDM(this);
|
||||
|
||||
Server()->SetBrowseInfo(m_pController->m_pGameType, -1);
|
||||
|
||||
// setup core world
|
||||
//for(int i = 0; i < MAX_CLIENTS; i++)
|
||||
// game.players[i].core.world = &game.world.core;
|
||||
|
|
Loading…
Reference in a new issue