[iortcw] 52/497: SP: Don't check AI for connection status (Fix phone jack icon issue)
Simon McVittie
smcv at debian.org
Fri Sep 8 10:36:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag 1.42d
in repository iortcw.
commit 0cb77f0683eb5e00ca1874c08a891f4b52fe56f8
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date: Tue Feb 25 23:11:05 2014 +0000
SP: Don't check AI for connection status (Fix phone jack icon issue)
---
SP/code/game/g_active.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/SP/code/game/g_active.c b/SP/code/game/g_active.c
index e8aaf89..d5d267c 100644
--- a/SP/code/game/g_active.c
+++ b/SP/code/game/g_active.c
@@ -1598,10 +1598,12 @@ void ClientEndFrame( gentity_t *ent ) {
P_DamageFeedback( ent );
// add the EF_CONNECTION flag if we haven't gotten commands recently
- if ( level.time - ent->client->lastCmdTime > 1000 ) {
- ent->client->ps.eFlags |= EF_CONNECTION;
- } else {
- ent->client->ps.eFlags &= ~EF_CONNECTION;
+ if ( !( ent->r.svFlags & SVF_CASTAI ) ) {
+ if ( level.time - ent->client->lastCmdTime > 1000 ) {
+ ent->client->ps.eFlags |= EF_CONNECTION;
+ } else {
+ ent->client->ps.eFlags &= ~EF_CONNECTION;
+ }
}
ent->client->ps.stats[STAT_HEALTH] = ent->health; // FIXME: get rid of ent->health...
--
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