From 6a2d6f12088f0352f67165564871c56a92c37a2f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 14 Apr 2012 23:21:56 +0200 Subject: [PATCH] Fix Eval Graph scale in drop games --- evalgraph.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/evalgraph.c b/evalgraph.c index 9c26897..55c4f97 100644 --- a/evalgraph.c +++ b/evalgraph.c @@ -120,8 +120,8 @@ GetValueY (int value) { if( value < -range*700 ) value = -range*700; if( value > +range*700 ) value = +range*700; - if(value > 100*range) value += appData.zoom * 100 - 100*range; else - if(value < -100*range) value -= appData.zoom * 100 - 100*range; else + if(value > 100*range) value += (appData.zoom - 1)*100*range; else + if(value < -100*range) value -= (appData.zoom - 1)*100*range; else value *= appData.zoom; return (nHeightPB / 2) - (int)(value * (nHeightPB - 2*MarginH) / ((1200. + 200.*appData.zoom)*range)); } -- 1.7.0.4