mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
maintenance: minor refactoring, removed deprecated code and variables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user