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; m_CurrentGameTick = 0;
Kernel()->ReregisterInterface(GameServer()); Kernel()->ReregisterInterface(GameServer());
GameServer()->OnInit(); GameServer()->OnInit();
UpdateServerInfo();
} }
else else
{ {

View file

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