[ioquake3] 127/136: Fix notarget cheat
Simon McVittie
smcv at debian.org
Thu Jun 15 09:09:18 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 8956ab41dd67c9eff889821bec1e1b13ea012568
Author: Tobias Kuehnhammer <kuehnhammertobias at gmail.com>
Date: Wed Jun 7 21:19:42 2017 -0500
Fix notarget cheat
Bots no longer target players in 'no target mode'.
---
code/game/ai_dmq3.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/code/game/ai_dmq3.c b/code/game/ai_dmq3.c
index 8f22e2f..5198cb3 100644
--- a/code/game/ai_dmq3.c
+++ b/code/game/ai_dmq3.c
@@ -2988,6 +2988,10 @@ int BotFindEnemy(bot_state_t *bs, int curenemy) {
if (i == bs->client) continue;
//if it's the current enemy
if (i == curenemy) continue;
+ //if the enemy has targeting disabled
+ if (g_entities[i].flags & FL_NOTARGET) {
+ continue;
+ }
//
BotEntityInfo(i, &entinfo);
//
--
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