diff --git a/src/game/server/gamemodes/DDRace.cpp b/src/game/server/gamemodes/DDRace.cpp index 8960db036..494fe8b32 100644 --- a/src/game/server/gamemodes/DDRace.cpp +++ b/src/game/server/gamemodes/DDRace.cpp @@ -6,10 +6,11 @@ #include #include #include "DDRace.h" +#include "gamemode.h" CGameControllerDDRace::CGameControllerDDRace(class CGameContext *pGameServer) : IGameController(pGameServer), m_Teams(pGameServer) { - m_pGameType = "DDRace"; + m_pGameType = GAME_NAME; InitTeleporter(); } diff --git a/src/game/server/gamemodes/gamemode.h b/src/game/server/gamemodes/gamemode.h new file mode 100644 index 000000000..cedcf3e9c --- /dev/null +++ b/src/game/server/gamemodes/gamemode.h @@ -0,0 +1,7 @@ +/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */ +/* This is used for all NONE Official Builds of DDRace, if you changed the source in anyway change this to something other than DDRace*/ +#ifndef GAME_MODE_H +#define GAME_MODE_H + +#define GAME_NAME "TestDDRace" +#endif diff --git a/src/game/server/gamemodes/gamemode.h.official b/src/game/server/gamemodes/gamemode.h.official new file mode 100644 index 000000000..6279d8e54 --- /dev/null +++ b/src/game/server/gamemodes/gamemode.h.official @@ -0,0 +1,7 @@ +/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */ +/* This is used for Official Builds of DDRace, if you change the source please don't use the name DDRace*/ +#ifndef GAME_MODE_H +#define GAME_MODE_H + +#define GAME_NAME "DDRace" +#endif