mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
added the mod game mode switch
This commit is contained in:
parent
58fcbd5d5a
commit
18758943d6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue