maintenance: minor refactoring, removed deprecated code and variables

This commit is contained in:
tmj-fstate
2017-08-28 00:07:47 +02:00
parent 110bdf63bb
commit 3a6e2869ae
17 changed files with 40 additions and 105 deletions

View File

@@ -359,7 +359,7 @@ void Console::ValueSet(int x, double y)
WriteLog("CalibrateOutDebugInfo: oryginal=" + std::to_string(y), false);
if (Global::fCalibrateOutMax[x] > 0)
{
y = Global::CutValueToRange(0, y, Global::fCalibrateOutMax[x]);
y = clamp( y, 0.0, Global::fCalibrateOutMax[x]);
if (Global::iCalibrateOutDebugInfo == x)
WriteLog(" cutted=" + std::to_string(y), false);
y = y / Global::fCalibrateOutMax[x]; // sprowadzenie do <0,1> jeśli podana