summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-03 15:12:23 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:15 +0100
commitc5d690640c0095eda87495dc70346544ee013731 (patch)
treec9a71d19cb1416cc5f369994ae9cdd2b1ed771de
parent572719119e7f727d8eb91ed50fec15b71ea4117d (diff)
drop the use of the origin and angles fields of entityState_t in the server
-rw-r--r--src/server/sv_snapshot.c2
1 files changed, 1 insertions, 1 deletions
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;
}