From ecd5f296ef6dc871fd4c03d0607a235f309e4d4a Mon Sep 17 00:00:00 2001 From: btd Date: Sat, 2 Oct 2010 15:54:43 +0400 Subject: [PATCH] This is good to make so. Maybe this is not bad. Now when you join to any team your cannot use hack with finish status. --- src/game/server/teams.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/server/teams.cpp b/src/game/server/teams.cpp index cbe6e5281..4a3142c13 100644 --- a/src/game/server/teams.cpp +++ b/src/game/server/teams.cpp @@ -103,7 +103,10 @@ bool CGameTeams::SetCharacterTeam(int id, int Team) { } void CGameTeams::SetForceCharacterTeam(int id, int Team) { - if(m_Core.Team(id) != TEAM_FLOCK && m_Core.Team(id) != TEAM_SUPER && m_TeamState[m_Core.Team(id)] != EMPTY) { + m_TeeFinished[id] = false; + if(m_Core.Team(id) != TEAM_FLOCK + && m_Core.Team(id) != TEAM_SUPER + && m_TeamState[m_Core.Team(id)] != EMPTY) { bool NoOneInOldTeam = true; for(int i = 0; i < MAX_CLIENTS; ++i) { if(i != id && m_Core.Team(id) == m_Core.Team(i)) {