about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/server/gamemodes/mod.cpp40
-rw-r--r--src/game/server/gamemodes/mod.h22
2 files changed, 31 insertions, 31 deletions
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 <game/server/gamecontroller.h>

-

-// 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 <game/server/gamecontroller.h>
+
+// 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