summaryrefslogtreecommitdiff
path: root/src/game/g_misc.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-02 17:19:53 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:15 +0100
commit3082ad368b015ed8d9403aae85ca571de52ed1f0 (patch)
treecd26e05d1f46c2f911e49d8a18bc5b001bb06724 /src/game/g_misc.c
parentc5d690640c0095eda87495dc70346544ee013731 (diff)
try to synchronize ent->r.currentAngles with ent->client->ps.viewangles a bit
Diffstat (limited to 'src/game/g_misc.c')
-rw-r--r--src/game/g_misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/g_misc.c b/src/game/g_misc.c
index 87b13c7a..8c667ad4 100644
--- a/src/game/g_misc.c
+++ b/src/game/g_misc.c
@@ -102,6 +102,7 @@ void TeleportPlayer( gentity_t *player, vec3_t origin, vec3_t angles, float spee
// use the precise origin for linking
VectorCopy( player->client->ps.origin, player->r.currentOrigin );
+ VectorCopy( player->client->ps.viewangles, player->r.currentAngles );
if( player->client->sess.spectatorState == SPECTATOR_NOT )
{