diff options
| author | oy <Tom_Adams@web.de> | 2012-01-08 13:55:20 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2012-01-08 13:55:20 +0100 |
| commit | 57a975f38e2021fa5a0c7581249003038690a7a3 (patch) | |
| tree | 58f24125e253770049541490e68ab9739cdb1f95 /src/game/server/gamecontext.h | |
| parent | a9db705c1497044b32d5a722d484b275af92246a (diff) | |
| download | zcatch-57a975f38e2021fa5a0c7581249003038690a7a3.tar.gz zcatch-57a975f38e2021fa5a0c7581249003038690a7a3.zip | |
added a server command to lock teams. Closes #831
Diffstat (limited to 'src/game/server/gamecontext.h')
| -rw-r--r-- | src/game/server/gamecontext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/server/gamecontext.h b/src/game/server/gamecontext.h index fe07637e..559d1c0d 100644 --- a/src/game/server/gamecontext.h +++ b/src/game/server/gamecontext.h @@ -56,6 +56,7 @@ class CGameContext : public IGameServer static void ConSetTeamAll(IConsole::IResult *pResult, void *pUserData); static void ConSwapTeams(IConsole::IResult *pResult, void *pUserData); static void ConShuffleTeams(IConsole::IResult *pResult, void *pUserData); + static void ConLockTeams(IConsole::IResult *pResult, void *pUserData); static void ConAddVote(IConsole::IResult *pResult, void *pUserData); static void ConRemoveVote(IConsole::IResult *pResult, void *pUserData); static void ConForceVote(IConsole::IResult *pResult, void *pUserData); @@ -87,6 +88,8 @@ public: // helper functions class CCharacter *GetPlayerChar(int ClientID); + int m_LockTeams; + // voting void StartVote(const char *pDesc, const char *pCommand, const char *pReason); void EndVote(); |