From 0e36b772d431eef1dfb8ae2abee527aaf40558fd Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 15 Aug 2010 15:34:55 +0200 Subject: fixed line endings in some files --- src/game/server/gamemodes/mod.cpp | 40 +++++++++++++++++++-------------------- src/game/server/gamemodes/mod.h | 22 ++++++++++----------- 2 files changed, 31 insertions(+), 31 deletions(-) (limited to 'src/game/server/gamemodes') diff --git a/src/game/server/gamemodes/mod.cpp b/src/game/server/gamemodes/mod.cpp index 44d0effc..9213fefc 100644 --- a/src/game/server/gamemodes/mod.cpp +++ b/src/game/server/gamemodes/mod.cpp @@ -1,21 +1,21 @@ // copyright (c) 2007 magnus auvinen, see licence.txt for more info -#include "mod.h" - -CGameControllerMOD::CGameControllerMOD(class CGameContext *pGameServer) -: IGameController(pGameServer) -{ - // Exchange this to a string that identifies your game mode. - // DM, TDM and CTF are reserved for teeworlds original modes. - m_pGameType = "MOD"; - - //m_GameFlags = GAMEFLAG_TEAMS; // GAMEFLAG_TEAMS makes it a two-team gamemode -} - -void CGameControllerMOD::Tick() -{ - // this is the main part of the gamemode, this function is run every tick - DoPlayerScoreWincheck(); // checks for winners, no teams version - //DoTeamScoreWincheck(); // checks for winners, two teams version - - IGameController::Tick(); -} +#include "mod.h" + +CGameControllerMOD::CGameControllerMOD(class CGameContext *pGameServer) +: IGameController(pGameServer) +{ + // Exchange this to a string that identifies your game mode. + // DM, TDM and CTF are reserved for teeworlds original modes. + m_pGameType = "MOD"; + + //m_GameFlags = GAMEFLAG_TEAMS; // GAMEFLAG_TEAMS makes it a two-team gamemode +} + +void CGameControllerMOD::Tick() +{ + // this is the main part of the gamemode, this function is run every tick + DoPlayerScoreWincheck(); // checks for winners, no teams version + //DoTeamScoreWincheck(); // checks for winners, two teams version + + IGameController::Tick(); +} diff --git a/src/game/server/gamemodes/mod.h b/src/game/server/gamemodes/mod.h index 86dff78b..2c4b4b0d 100644 --- a/src/game/server/gamemodes/mod.h +++ b/src/game/server/gamemodes/mod.h @@ -1,14 +1,14 @@ #ifndef GAME_SERVER_GAMEMODES_MOD_H #define GAME_SERVER_GAMEMODES_MOD_H -#include - -// you can subclass GAMECONTROLLER_CTF, GAMECONTROLLER_TDM etc if you want -// todo a modification with their base as well. -class CGameControllerMOD : public IGameController -{ -public: - CGameControllerMOD(class CGameContext *pGameServer); - virtual void Tick(); - // add more virtual functions here if you wish -}; +#include + +// you can subclass GAMECONTROLLER_CTF, GAMECONTROLLER_TDM etc if you want +// todo a modification with their base as well. +class CGameControllerMOD : public IGameController +{ +public: + CGameControllerMOD(class CGameContext *pGameServer); + virtual void Tick(); + // add more virtual functions here if you wish +}; #endif -- cgit 1.4.1