From 70a75fcf78e5f02694cd0104993e3ed09a9481da Mon Sep 17 00:00:00 2001 From: flowtron Date: Sat, 13 Nov 2010 23:09:18 +0000 Subject: [PATCH] scope sensitivity scaling back to original feel git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5841 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/physics.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/src/physics.cpp b/source/src/physics.cpp index d37ac7d6..7d847431 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -919,16 +919,15 @@ void mousemove(int odx, int ody) float cursens = sensitivity; if(senst) {cursens=testsens;} if(mouseaccel && curtime && (dx || dy)) cursens += 0.02f * mouseaccel * sqrtf(dx*dx + dy*dy)/curtime; - cursens /= 33.0f*sensitivityscale; - if( zooming(player1) ) { extern float scopesensfunc; cursens *= autoscopesens ? scopesensfunc : scopesensscale; } - - camera1->yaw += dx*cursens; - camera1->pitch -= dy*cursens*(invmouse ? -1 : 1); + float sensfactor = 33.0f*sensitivityscale; // the line below causes a changed value during scoping. example for 30-mickeys: AC-1.0 => 1.4272 and AC-1.1 => 1.410 + //cursens /= 33.0f*sensitivityscale; // now it will be back to the original values + camera1->yaw += dx*cursens/sensfactor; + camera1->pitch -= dy*cursens*(invmouse ? -1 : 1)/sensfactor; fixcamerarange(); if(camera1!=player1 && player1->spectatemode!=SM_DEATHCAM) {