fix: use real teams when joining the games
This commit is contained in:
parent
5329be46dc
commit
80e59c2c24
3 changed files with 29 additions and 15 deletions
|
|
@ -304,6 +304,14 @@ public:
|
|||
return util.getClient (indexOfPlayer (ent)).team;
|
||||
}
|
||||
|
||||
// gets the player team (real in ffa)
|
||||
int getRealTeam (edict_t *ent) {
|
||||
if (isNullEntity (ent)) {
|
||||
return Team::Unassigned;
|
||||
}
|
||||
return util.getClient (indexOfPlayer (ent)).team2;
|
||||
}
|
||||
|
||||
// sets the precache to uninitialize
|
||||
void setUnprecached () {
|
||||
m_precached = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue