mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 01:59:19 +02:00
Replace clamp with std::clamp
This commit is contained in:
@@ -257,7 +257,7 @@ void Console::ValueSet(int x, double y)
|
||||
}
|
||||
if (Global.fCalibrateOutMax[x] > 0)
|
||||
{
|
||||
y = clamp( y, 0.0, Global.fCalibrateOutMax[x]);
|
||||
y = std::clamp(y, 0.0, Global.fCalibrateOutMax[x]);
|
||||
if( Global.iCalibrateOutDebugInfo == x ) {
|
||||
WriteLog( " cutted=" + std::to_string( y ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user