From 90c028c812578383730d3540704937666aaf164c Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 6 Dec 2008 02:07:04 +0000 Subject: [PATCH] clear fixangle on botclients, allowing them to update their angles to match v_angle automatically git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3089 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_phys.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/server/sv_phys.c b/engine/server/sv_phys.c index f0b79306f..175df5d67 100644 --- a/engine/server/sv_phys.c +++ b/engine/server/sv_phys.c @@ -1776,6 +1776,9 @@ void SV_RunEntity (edict_t *ent) return; // unconnected slot + if (svs.clients[ent->entnum-1].protocol == SCP_BAD) + svs.clients[ent->entnum-1].edict->v->fixangle = 0; //bots never get fixangle cleared otherwise + host_client = &svs.clients[ent->entnum-1]; SV_ClientThink();