- Fixed: TEAMINFO broke bot parsing for bots with invalid team names by
redefining TEAM_None from 255 to -1. SVN r616 (trunk)
This commit is contained in:
parent
2b86ebe4e5
commit
e84bece8eb
7 changed files with 18 additions and 35 deletions
|
|
@ -587,7 +587,7 @@ bool DCajunMaster::LoadBots ()
|
|||
|
||||
case BOTCFG_TEAM:
|
||||
{
|
||||
char teamstr[4];
|
||||
char teamstr[16];
|
||||
unsigned int teamnum;
|
||||
|
||||
SC_MustGetString ();
|
||||
|
|
@ -612,7 +612,7 @@ bool DCajunMaster::LoadBots ()
|
|||
}
|
||||
}
|
||||
appendinfo (newinfo->info, "team");
|
||||
sprintf (teamstr, "%u", teamnum);
|
||||
sprintf (teamstr, "%d", teamnum);
|
||||
appendinfo (newinfo->info, teamstr);
|
||||
gotteam = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue