From c5d690640c0095eda87495dc70346544ee013731 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Tue, 3 Feb 2015 15:12:23 +0100 Subject: drop the use of the origin and angles fields of entityState_t in the server --- src/server/sv_snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/sv_snapshot.c b/src/server/sv_snapshot.c index 57d4e64b..e73e6138 100644 --- a/src/server/sv_snapshot.c +++ b/src/server/sv_snapshot.c @@ -419,7 +419,7 @@ static void SV_AddEntitiesVisibleFromPoint( vec3_t origin, clientSnapshot_t *fra if ( ent->r.svFlags & SVF_PORTAL ) { if ( ent->s.generic1 ) { vec3_t dir; - VectorSubtract(ent->s.origin, origin, dir); + VectorSubtract(ent->r.currentOrigin, origin, dir); if ( VectorLengthSquared(dir) > (float) ent->s.generic1 * ent->s.generic1 ) { continue; } -- cgit