Added ChangeTeam function for teamplay
Also removes the TeamLibrary global since all it did was call what should've been static functions.
This commit is contained in:
parent
3d6e508d67
commit
53270f0bc8
7 changed files with 49 additions and 22 deletions
|
|
@ -305,7 +305,7 @@ bool FCajunMaster::SpawnBot (const char *name, int color)
|
|||
{
|
||||
concat << colors[bot_next_color];
|
||||
}
|
||||
if (TeamLibrary.IsValidTeam (thebot->lastteam))
|
||||
if (FTeam::IsValid (thebot->lastteam))
|
||||
{ // Keep the bot on the same team when switching levels
|
||||
concat.AppendFormat("\\team\\%d\n", thebot->lastteam);
|
||||
}
|
||||
|
|
@ -587,7 +587,7 @@ bool FCajunMaster::LoadBots ()
|
|||
if (IsNum (sc.String))
|
||||
{
|
||||
teamnum = atoi (sc.String);
|
||||
if (!TeamLibrary.IsValidTeam (teamnum))
|
||||
if (!FTeam::IsValid (teamnum))
|
||||
{
|
||||
teamnum = TEAM_NONE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue