summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
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
commit572719119e7f727d8eb91ed50fec15b71ea4117d (patch)
treeeb3c7b779ca639a12a01729dc10b2474a9252d3a /src/game/g_main.c
parente52255589bcd37a841cf275e13ae1abf427c7c79 (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_main.c')
-rw-r--r--src/game/g_main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index b150a95d..6bd86887 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -1530,8 +1530,10 @@ void MoveClientToIntermission( gentity_t *ent )
G_StopFollowing( ent );
// move to the spot
- VectorCopy( level.intermission_origin, ent->s.origin );
+ VectorCopy( level.intermission_origin, ent->s.pos.trBase );
+ VectorCopy( level.intermission_origin, ent->r.currentOrigin );
VectorCopy( level.intermission_origin, ent->client->ps.origin );
+ VectorCopy( level.intermission_angle, ent->s.apos.trBase );
VectorCopy( level.intermission_angle, ent->client->ps.viewangles );
ent->client->ps.pm_type = PM_INTERMISSION;
@@ -1567,8 +1569,8 @@ void FindIntermissionPoint( void )
}
else
{
- VectorCopy( ent->s.origin, level.intermission_origin );
- VectorCopy( ent->s.angles, level.intermission_angle );
+ VectorCopy( ent->r.currentOrigin, level.intermission_origin );
+ VectorCopy( ent->r.currentAngles, level.intermission_angle );
// if it has a target, look towards it
if( ent->target )
{
@@ -1576,7 +1578,7 @@ void FindIntermissionPoint( void )
if( target )
{
- VectorSubtract( target->s.origin, level.intermission_origin, dir );
+ VectorSubtract( target->r.currentOrigin, level.intermission_origin, dir );
vectoangles( dir, level.intermission_angle );
}
}