update server info for connected clients if map or gametype changes. Closes #108

This commit is contained in:
oy 2010-06-07 13:34:47 +02:00
parent a3545b06b4
commit 2104835d77
2 changed files with 3 additions and 0 deletions

View file

@ -1078,6 +1078,7 @@ int CServer::Run()
m_CurrentGameTick = 0;
Kernel()->ReregisterInterface(GameServer());
GameServer()->OnInit();
UpdateServerInfo();
}
else
{

View file

@ -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;