diff options
| author | Teetime <TeetimeTW@yahoo.de> | 2013-03-24 01:48:27 +0100 |
|---|---|---|
| committer | Teetime <TeetimeTW@yahoo.de> | 2013-03-24 01:48:27 +0100 |
| commit | dfb161739ceed848587e11d418ef30e0f5142f16 (patch) | |
| tree | 28490f707b156cadc297d04b82371dc7027f59f6 /src/game/server/gamemodes/zcatch.h | |
| parent | b22f178e0f0a639c3dcd2323b076fb9da5888b14 (diff) | |
| download | zcatch-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.h | 2 |
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 |