[ioquake3] 116/136: Don't build score info for bots, they don't parse it
Simon McVittie
smcv at debian.org
Thu Jun 15 09:09:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit 91acf8a681e8661a80f13e0a82255cb52c56cf79
Author: Zack Middleton <zack at cloemail.com>
Date: Wed Jun 7 19:54:34 2017 -0500
Don't build score info for bots, they don't parse it
---
code/game/g_cmds.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/code/game/g_cmds.c b/code/game/g_cmds.c
index df74ef0..dde25d9 100644
--- a/code/game/g_cmds.c
+++ b/code/game/g_cmds.c
@@ -40,6 +40,11 @@ void DeathmatchScoreboardMessage( gentity_t *ent ) {
gclient_t *cl;
int numSorted, scoreFlags, accuracy, perfect;
+ // don't send scores to bots, they don't parse it
+ if ( ent->r.svFlags & SVF_BOT ) {
+ return;
+ }
+
// send the latest information on all clients
string[0] = 0;
stringlength = 0;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list