about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-06-07 13:34:47 +0200
committeroy <Tom_Adams@web.de>2010-06-07 13:34:47 +0200
commit2104835d77c458409dec549f8badf8bc536c43d6 (patch)
tree543124056e9bcb83fae7d3e65eb0dcb31be845da /src/game
parenta3545b06b4dd230df8a88a9aa4080d877d78ebab (diff)
downloadzcatch-2104835d77c458409dec549f8badf8bc536c43d6.tar.gz
zcatch-2104835d77c458409dec549f8badf8bc536c43d6.zip
update server info for connected clients if map or gametype changes. Closes #108
Diffstat (limited to 'src/game')
-rw-r--r--src/game/server/gamecontext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp
index c04dd945..0c3c1ef5 100644
--- a/src/game/server/gamecontext.cpp
+++ b/src/game/server/gamecontext.cpp
@@ -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;