This is an automated email from the git hooks/post-receive script. smcv pushed a commit to branch debian/master in repository ioquake3.
commit 690c5a4dac3c3d0d59ee271aadd8f19a29a9f338 Author: Zack Middleton <z...@cloemail.com> Date: Sun Oct 8 11:19:40 2017 -0500 Don't send team overlay info to bots --- code/game/g_bot.c | 3 +++ code/game/g_client.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/g_bot.c b/code/game/g_bot.c index af4906a..b5731a6 100644 --- a/code/game/g_bot.c +++ b/code/game/g_bot.c @@ -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 ); diff --git a/code/game/g_client.c b/code/game/g_client.c index 89f2098..3366d17 100644 --- a/code/game/g_client.c +++ b/code/game/g_client.c @@ -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" ); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits