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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user