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;
|
m_CurrentGameTick = 0;
|
||||||
Kernel()->ReregisterInterface(GameServer());
|
Kernel()->ReregisterInterface(GameServer());
|
||||||
GameServer()->OnInit();
|
GameServer()->OnInit();
|
||||||
|
UpdateServerInfo();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -984,6 +984,8 @@ void CGameContext::OnInit(/*class IKernel *pKernel*/)
|
||||||
else
|
else
|
||||||
m_pController = new CGameControllerDM(this);
|
m_pController = new CGameControllerDM(this);
|
||||||
|
|
||||||
|
Server()->SetBrowseInfo(m_pController->m_pGameType, -1);
|
||||||
|
|
||||||
// setup core world
|
// setup core world
|
||||||
//for(int i = 0; i < MAX_CLIENTS; i++)
|
//for(int i = 0; i < MAX_CLIENTS; i++)
|
||||||
// game.players[i].core.world = &game.world.core;
|
// game.players[i].core.world = &game.world.core;
|
||||||
|
|
Loading…
Reference in a new issue