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.

This commit is contained in:
btd 2010-10-02 15:54:43 +04:00
parent 5bdb8090af
commit ecd5f296ef

View file

@ -103,7 +103,10 @@ bool CGameTeams::SetCharacterTeam(int id, int Team) {
} }
void CGameTeams::SetForceCharacterTeam(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; bool NoOneInOldTeam = true;
for(int i = 0; i < MAX_CLIENTS; ++i) { for(int i = 0; i < MAX_CLIENTS; ++i) {
if(i != id && m_Core.Team(id) == m_Core.Team(i)) { if(i != id && m_Core.Team(id) == m_Core.Team(i)) {