deathcam mousemove fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2614 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-15 05:28:36 +00:00
parent 271ecb8b7b
commit 9507058d56
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -639,7 +639,7 @@ void mousemove(int dx, int dy)
camera1->yaw += (dx/SENSF)*(sensitivity/(float)sensitivityscale);
camera1->pitch -= (dy/SENSF)*(sensitivity/(float)sensitivityscale)*(invmouse ? -1 : 1);
fixcamerarange();
if(camera1!=player1)
if(camera1!=player1 && player1->spectatemode!=SM_DEATHCAM)
{
player1->yaw = camera1->yaw;
player1->pitch = camera1->pitch;
+1 -1
View File
@@ -421,7 +421,7 @@ void recomputecamera()
static playerent *lastplayer;
if(lastplayer != p || &followcam != camera1)
{
followcam = *(playerent*)p;
followcam = *(physent *)p;
followcam.type = ENT_CAMERA;
followcam.reset();
followcam.roll = 0;