- 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:
Randy Heit 2007-12-22 04:00:25 +00:00
commit e84bece8eb
7 changed files with 18 additions and 35 deletions

View file

@ -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;