diff options
| author | Teetime <anton.tsoulos@yahoo.de> | 2011-10-14 02:40:05 +0200 |
|---|---|---|
| committer | Teetime <anton.tsoulos@yahoo.de> | 2011-10-14 02:40:05 +0200 |
| commit | 5bd8c48b3c3f4e6c0d6fdc3c1b9a7e604ea1f3bb (patch) | |
| tree | c56b72b20bbf051354a6d29fde41f428f7ecc0b5 /src/game/server/player.cpp | |
| parent | 973894f33baae6411b920fb2dce7b92fe4f57343 (diff) | |
| download | zcatch-5bd8c48b3c3f4e6c0d6fdc3c1b9a7e604ea1f3bb.tar.gz zcatch-5bd8c48b3c3f4e6c0d6fdc3c1b9a7e604ea1f3bb.zip | |
moved and overworked wincheck
Diffstat (limited to 'src/game/server/player.cpp')
| -rw-r--r-- | src/game/server/player.cpp | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/src/game/server/player.cpp b/src/game/server/player.cpp index 77aa9b38..4ea2a4a6 100644 --- a/src/game/server/player.cpp +++ b/src/game/server/player.cpp @@ -50,44 +50,11 @@ void CPlayer::Tick() Server()->SetClientScore(m_ClientID, m_Score); /* begin zCatch*/ - int num = 0, num_spec = 0, num_SpecExplicit = 0; if(m_Team == TEAM_SPECTATORS) m_TicksSpec++; else - m_TicksIngame++; - - for(int i = 0; i < MAX_CLIENTS; i++) - { - if(GameServer()->m_apPlayers[i]) - { - num++; - if(GameServer()->m_apPlayers[i]->m_Team == TEAM_SPECTATORS) - num_spec++; - if(GameServer()->m_apPlayers[i]->m_SpecExplicit == 1) - num_SpecExplicit++; - } - } - - if(num == 1) - { - //Do nothing - } - //solution for sv_allow_join == 0 and mapchange: - else if((g_Config.m_SvAllowJoin == 0) && (num_spec == num) && (num_spec != num_SpecExplicit)) - { - GameServer()->m_pController->EndRound(); - } - else if((num - num_spec == 1) && (num != num_spec) && (num - num_SpecExplicit != 1)) - { - for(int i = 0; i < MAX_CLIENTS; i++) - { - if(GameServer()->m_apPlayers[i] && GameServer()->m_apPlayers[i]->m_Team != TEAM_SPECTATORS) - GameServer()->m_apPlayers[i]->m_Score += g_Config.m_SvBonus; - GameServer()->m_pController->EndRound(); - break; - } - } + m_TicksIngame++; /* end zCatch*/ |