diff options
| author | oy <Tom_Adams@web.de> | 2010-08-07 20:22:25 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-08-07 20:22:25 +0200 |
| commit | ad9b32b7417d0837c485b6c9b802cc90aa51c521 (patch) | |
| tree | fb2c0cd8d68f58bbbd1e0d895cb82086ea824fe7 /src/game/server | |
| parent | 3f0ff1fb1404efcb312a6bfcef0beb4b6a0d92ef (diff) | |
| download | zcatch-ad9b32b7417d0837c485b6c9b802cc90aa51c521.tar.gz zcatch-ad9b32b7417d0837c485b6c9b802cc90aa51c521.zip | |
added the possibility to store commands within the console and execute them later on when everything is initialised correctly - fixes several possible startup crashes and the "Support bans in server configuration"-ticket
Diffstat (limited to 'src/game/server')
| -rw-r--r-- | src/game/server/gamecontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index e9cce458..8b8db59a 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -948,8 +948,8 @@ void CGameContext::OnConsoleInit() Console()->Register("tune_reset", "", CFGFLAG_SERVER, ConTuneReset, this, ""); Console()->Register("tune_dump", "", CFGFLAG_SERVER, ConTuneDump, this, ""); - Console()->Register("change_map", "r", CFGFLAG_SERVER, ConChangeMap, this, ""); - Console()->Register("restart", "?i", CFGFLAG_SERVER, ConRestart, this, ""); + Console()->Register("change_map", "r", CFGFLAG_SERVER|CFGFLAG_STORE, ConChangeMap, this, ""); + Console()->Register("restart", "?i", CFGFLAG_SERVER|CFGFLAG_STORE, ConRestart, this, ""); Console()->Register("broadcast", "r", CFGFLAG_SERVER, ConBroadcast, this, ""); Console()->Register("say", "r", CFGFLAG_SERVER, ConSay, this, ""); Console()->Register("set_team", "ii", CFGFLAG_SERVER, ConSetTeam, this, ""); |