summaryrefslogtreecommitdiff
path: root/src/game/g_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_misc.c')
-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)