summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/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;
}