Don't send team overlay info to bots
This commit is contained in:
parent
b4a4fe98d4
commit
690c5a4dac
2 changed files with 4 additions and 1 deletions
|
@ -724,6 +724,9 @@ static void G_AddBot( const char *name, float skill, const char *team, int delay
|
||||||
}
|
}
|
||||||
Info_SetValueForKey( userinfo, "characterfile", s );
|
Info_SetValueForKey( userinfo, "characterfile", s );
|
||||||
|
|
||||||
|
// don't send tinfo to bots, they don't parse it
|
||||||
|
Info_SetValueForKey( userinfo, "teamoverlay", "0" );
|
||||||
|
|
||||||
// register the userinfo
|
// register the userinfo
|
||||||
trap_SetUserinfo( clientNum, userinfo );
|
trap_SetUserinfo( clientNum, userinfo );
|
||||||
|
|
||||||
|
|
|
@ -803,7 +803,7 @@ void ClientUserinfoChanged( int clientNum ) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef MISSIONPACK
|
#ifdef MISSIONPACK
|
||||||
if (g_gametype.integer >= GT_TEAM) {
|
if (g_gametype.integer >= GT_TEAM && !(ent->r.svFlags & SVF_BOT)) {
|
||||||
client->pers.teamInfo = qtrue;
|
client->pers.teamInfo = qtrue;
|
||||||
} else {
|
} else {
|
||||||
s = Info_ValueForKey( userinfo, "teamoverlay" );
|
s = Info_ValueForKey( userinfo, "teamoverlay" );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue