mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
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:
parent
5bdb8090af
commit
ecd5f296ef
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue