Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Commit

Permalink
Autoexec map config
Browse files Browse the repository at this point in the history
  • Loading branch information
savander committed May 3, 2015
1 parent fb02590 commit 72e5f58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/game/server/gamecontext.cpp
Expand Up @@ -1506,6 +1506,14 @@ void CGameContext::OnInit(/*class IKernel *pKernel*/)
//world = new GAMEWORLD;
//players = new CPlayer[MAX_CLIENTS];


char buf[512];

str_format(buf, sizeof(buf), "maps/%s.cfg", g_Config.m_SvMap);
Console()->ExecuteFile(buf);
str_format(buf, sizeof(buf), "maps/%s.map.cfg", g_Config.m_SvMap);
Console()->ExecuteFile(buf);

// select gametype
if(str_comp(g_Config.m_SvGametype, "mod") == 0)
m_pController = new CGameControllerMOD(this);
Expand Down

0 comments on commit 72e5f58

Please sign in to comment.