summaryrefslogtreecommitdiff
path: root/src/game/bg_pmove.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-12-21 03:46:43 +0000
committerTim Angus <tim@ngus.net>2003-12-21 03:46:43 +0000
commitcdb8781108f8a7665f9b0bbd990e51b5e86449b1 (patch)
treed1ad34d34fd7d64e6df28ecc64d404fa91f3fb9f /src/game/bg_pmove.c
parent111e880bee11be3687bf4a06ed5c768c98bbc1a6 (diff)
* Added a means of overriding class and buildable media settings via cfg file
* View locking works again * Trapper projectile is displayed properly
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r--src/game/bg_pmove.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index 7001abb9..119b3d46 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -3089,9 +3089,14 @@ void PM_UpdateViewAngles( playerState_t *ps, const usercmd_t *cmd )
//pull the view into the lock point
if( ps->pm_type == PM_GRABBED )
{
+ vec3_t dir, angles;
+
+ ByteToDir( ps->stats[ STAT_VIEWLOCK ], dir );
+ vectoangles( dir, angles );
+
for( i = 0; i < 3; i++ )
{
- float diff = AngleSubtract( ps->viewangles[ i ], ps->grapplePoint[ i ] );
+ float diff = AngleSubtract( ps->viewangles[ i ], angles[ i ] );
while( diff > 180.0f )
diff -= 360.0f;