about summary refs log tree commit diff
path: root/src/game/server/gamemodes/zcatch.h
diff options
context:
space:
mode:
authorTeetime <TeetimeTW@yahoo.de>2013-03-24 01:48:27 +0100
committerTeetime <TeetimeTW@yahoo.de>2013-03-24 01:48:27 +0100
commitdfb161739ceed848587e11d418ef30e0f5142f16 (patch)
tree28490f707b156cadc297d04b82371dc7027f59f6 /src/game/server/gamemodes/zcatch.h
parentb22f178e0f0a639c3dcd2323b076fb9da5888b14 (diff)
downloadzcatch-dfb161739ceed848587e11d418ef30e0f5142f16.tar.gz
zcatch-dfb161739ceed848587e11d418ef30e0f5142f16.zip
Let calculate the playercolor on each tick to be always up to date, even with leaving and joining players and let DoWinCheck check if the game is over before checking
Diffstat (limited to 'src/game/server/gamemodes/zcatch.h')
-rw-r--r--src/game/server/gamemodes/zcatch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/server/gamemodes/zcatch.h b/src/game/server/gamemodes/zcatch.h
index 4f110a03..af776644 100644
--- a/src/game/server/gamemodes/zcatch.h
+++ b/src/game/server/gamemodes/zcatch.h
@@ -23,6 +23,8 @@ public:
 	virtual bool OnEntity(int Index, vec2 Pos);
 	virtual bool CanChangeTeam(CPlayer *pPlayer, int JoinTeam);
 	virtual void EndRound();
+
+	void CalcPlayerColor();
 };
 
 #endif