diff options
author | /dev/humancontroller <devhc@example.com> | 2015-02-02 17:06:50 +0100 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:14 +0100 |
commit | 572719119e7f727d8eb91ed50fec15b71ea4117d (patch) | |
tree | eb3c7b779ca639a12a01729dc10b2474a9252d3a /src/game/g_utils.c | |
parent | e52255589bcd37a841cf275e13ae1abf427c7c79 (diff) |
drop the use of the origin and angles fields of entityState_t in the game module
clear the r.currentAngles field for brushmodel-related entities using the ''angle'' spawn var
Diffstat (limited to 'src/game/g_utils.c')
-rw-r--r-- | src/game/g_utils.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/g_utils.c b/src/game/g_utils.c index 8bce5a41..71cf52e4 100644 --- a/src/game/g_utils.c +++ b/src/game/g_utils.c @@ -716,7 +716,6 @@ void G_SetOrigin( gentity_t *ent, const vec3_t origin ) VectorClear( ent->s.pos.trDelta ); VectorCopy( origin, ent->r.currentOrigin ); - VectorCopy( origin, ent->s.origin ); } // from quakestyle.telefragged.com @@ -783,13 +782,13 @@ gentity_t *G_ClosestEnt( vec3_t origin, gentity_t **entities, int numEntities ) return NULL; closestEnt = entities[ 0 ]; - d = DistanceSquared( origin, closestEnt->s.origin ); + d = DistanceSquared( origin, closestEnt->r.currentOrigin ); for( i = 1; i < numEntities; i++ ) { gentity_t *ent = entities[ i ]; - nd = DistanceSquared( origin, ent->s.origin ); + nd = DistanceSquared( origin, ent->r.currentOrigin ); if( nd < d ) { d = nd; |