diff options
Diffstat (limited to 'src/game/g_utils.c')
-rw-r--r-- | src/game/g_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_utils.c b/src/game/g_utils.c index fa4b5f23..1f4fa6df 100644 --- a/src/game/g_utils.c +++ b/src/game/g_utils.c @@ -987,7 +987,7 @@ gentity_t *G_ClosestEnt( vec3_t origin, gentity_t **entities, int numEntities ) { gentity_t *ent = entities[ i ]; - if( ( nd = VectorDistance( origin, ent->s.origin ) ) < d ) + if( ( nd = Distance( origin, ent->s.origin ) ) < d ) { d = nd; closestEnt = ent; |