diff options
author | /dev/humancontroller <devhc@example.com> | 2014-07-14 00:57:46 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:14 +0100 |
commit | e52255589bcd37a841cf275e13ae1abf427c7c79 (patch) | |
tree | 5045c7cca6553ef0879ae37f3ce2b82ad6b6efc2 /src/cgame/cg_buildable.c | |
parent | c823eaf3beb186dc4cf42fb4a41be1291069d77a (diff) |
drop the use of the origin and angles fields of entityState_t in the cgame module (use lerp values instead)
Diffstat (limited to 'src/cgame/cg_buildable.c')
-rw-r--r-- | src/cgame/cg_buildable.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index 33a3cc0e..256f9816 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -1288,7 +1288,6 @@ void CG_Buildable( centity_t *cent ) { refEntity_t ent; entityState_t *es = ¢->currentState; - vec3_t angles; vec3_t surfNormal, xNormal, mins, maxs; vec3_t refNormal = { 0.0f, 0.0f, 1.0f }; float rotAngle; @@ -1313,7 +1312,6 @@ void CG_Buildable( centity_t *cent ) VectorCopy( es->origin2, surfNormal ); - VectorCopy( es->angles, angles ); BG_BuildableBoundingBox( es->modelindex, mins, maxs ); if( es->pos.trType == TR_STATIONARY ) @@ -1332,7 +1330,7 @@ void CG_Buildable( centity_t *cent ) } else { - CG_PositionAndOrientateBuildable( angles, cent->lerpOrigin, surfNormal, + CG_PositionAndOrientateBuildable( cent->lerpAngles, cent->lerpOrigin, surfNormal, es->number, mins, maxs, ent.axis, ent.origin ); VectorCopy( ent.axis[ 0 ], cent->buildableCache.axis[ 0 ] ); |