[iortcw] 10/89: All: Don't build score info for bots, they don't parse it

Simon McVittie smcv at debian.org
Fri Sep 8 10:44:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51b
in repository iortcw.

commit 7a3a0a868239c64a657a128b76fc790ce22c6a2b
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Tue Jun 13 09:53:43 2017 -0400

    All: Don't build score info for bots, they don't parse it
---
 MP/code/game/g_cmds.c | 5 +++++
 SP/code/game/g_cmds.c | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/MP/code/game/g_cmds.c b/MP/code/game/g_cmds.c
index f745688..626207e 100644
--- a/MP/code/game/g_cmds.c
+++ b/MP/code/game/g_cmds.c
@@ -42,6 +42,11 @@ void DeathmatchScoreboardMessage( gentity_t *ent ) {
 	int numSorted;
 	int scoreFlags;
 
+	// 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;
diff --git a/SP/code/game/g_cmds.c b/SP/code/game/g_cmds.c
index e9db813..c41aa22 100644
--- a/SP/code/game/g_cmds.c
+++ b/SP/code/game/g_cmds.c
@@ -43,6 +43,11 @@ void DeathmatchScoreboardMessage( gentity_t *ent ) {
 	int numSorted;
 	int scoreFlags;
 
+	// 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/iortcw.git



More information about the Pkg-games-commits mailing list