summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-03 00:07:30 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:15 +0100
commit84f9b39019e973ea66db7a996d1d8d60baafb45d (patch)
tree7c9e3c65db92ade22aa410b7ebb2f3d6a2c9b46d
parent3082ad368b015ed8d9403aae85ca571de52ed1f0 (diff)
use r.currentAngles a bit more (for later use)
-rw-r--r--src/game/g_misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_misc.c b/src/game/g_misc.c
index 8c667ad4..ab143e53 100644
--- a/src/game/g_misc.c
+++ b/src/game/g_misc.c
@@ -191,6 +191,10 @@ void locateCamera( gentity_t *ent )
G_SetMovedir( owner->r.currentAngles, dir );
ent->s.eventParm = DirToByte( dir );
+
+ ByteToDir( ent->s.eventParm, dir );
+ vectoangles( dir, ent->r.currentAngles );
+ ent->r.currentAngles[ 2 ] = ent->s.clientNum * 360.0f / 256;
}
/*QUAKED misc_portal_surface (0 0 1) (-8 -8 -8) (8 8 8)