Skip to content

Commit

Permalink
Don't send team overlay info to bots
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Oct 9, 2017
1 parent b4a4fe9 commit 690c5a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions code/game/g_bot.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,9 @@ static void G_AddBot( const char *name, float skill, const char *team, int delay
}
Info_SetValueForKey( userinfo, "characterfile", s );

// don't send tinfo to bots, they don't parse it
Info_SetValueForKey( userinfo, "teamoverlay", "0" );

// register the userinfo
trap_SetUserinfo( clientNum, userinfo );

Expand Down
2 changes: 1 addition & 1 deletion code/game/g_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ void ClientUserinfoChanged( int clientNum ) {
*/

#ifdef MISSIONPACK
if (g_gametype.integer >= GT_TEAM) {
if (g_gametype.integer >= GT_TEAM && !(ent->r.svFlags & SVF_BOT)) {
client->pers.teamInfo = qtrue;
} else {
s = Info_ValueForKey( userinfo, "teamoverlay" );
Expand Down

0 comments on commit 690c5a4

Please sign in to comment.