From c735384b525ba47a452c342d588db62c47892dc5 Mon Sep 17 00:00:00 2001 From: GreYFoXGTi Date: Tue, 8 Feb 2011 18:35:48 +0200 Subject: [PATCH] If you Edit the Source Don't use the game mode DDRace --- src/game/server/gamemodes/DDRace.cpp | 3 ++- src/game/server/gamemodes/gamemode.h | 7 +++++++ src/game/server/gamemodes/gamemode.h.official | 7 +++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/game/server/gamemodes/gamemode.h create mode 100644 src/game/server/gamemodes/gamemode.h.official 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