diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-01-11 13:20:18 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-01-11 13:20:18 +0000 |
| commit | 18758943d6d3d0ad93b3a2b3c0c131b053e58e2e (patch) | |
| tree | ab9edf41b17e1720b2aa5331ce3a96bfddbd4ee6 | |
| parent | 58fcbd5d5a25342c77479bbf2d31fa4e738e840e (diff) | |
| download | zcatch-18758943d6d3d0ad93b3a2b3c0c131b053e58e2e.tar.gz zcatch-18758943d6d3d0ad93b3a2b3c0c131b053e58e2e.zip | |
added the mod game mode switch
| -rw-r--r-- | src/game/server/hooks.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp index 3f8fce80..be68e8d9 100644 --- a/src/game/server/hooks.cpp +++ b/src/game/server/hooks.cpp @@ -492,7 +492,9 @@ void mods_init() //players = new PLAYER[MAX_CLIENTS]; // select gametype - if(strcmp(config.sv_gametype, "ctf") == 0) + if(strcmp(config.sv_gametype, "mod") == 0) + game.controller = new GAMECONTROLLER_MOD; + else if(strcmp(config.sv_gametype, "ctf") == 0) game.controller = new GAMECONTROLLER_CTF; else if(strcmp(config.sv_gametype, "tdm") == 0) game.controller = new GAMECONTROLLER_TDM; |