diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/server/gamemodes/mod.cpp | 3 | ||||
| -rw-r--r-- | src/game/server/gamemodes/mod.hpp | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/game/server/gamemodes/mod.cpp b/src/game/server/gamemodes/mod.cpp index 00199305..87b37411 100644 --- a/src/game/server/gamemodes/mod.cpp +++ b/src/game/server/gamemodes/mod.cpp @@ -3,7 +3,10 @@ GAMECONTROLLER_MOD::GAMECONTROLLER_MOD() { + // Exchange this to a string that identifies your game mode. + // DM, TDM and CTF are reserved for teeworlds original modes. gametype = "MOD"; + //game_flags = GAMEFLAG_TEAMS; // GAMEFLAG_TEAMS makes it a two-team gamemode } diff --git a/src/game/server/gamemodes/mod.hpp b/src/game/server/gamemodes/mod.hpp index 35d6d989..9915a615 100644 --- a/src/game/server/gamemodes/mod.hpp +++ b/src/game/server/gamemodes/mod.hpp @@ -2,6 +2,8 @@ #include <game/server/gamecontroller.hpp> +// you can subclass GAMECONTROLLER_CTF, GAMECONTROLLER_TDM etc if you want +// todo a modification with their base as well. class GAMECONTROLLER_MOD : public GAMECONTROLLER { public: |