mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 00:09:18 +02:00
Replace clamp with std::clamp
This commit is contained in:
@@ -459,7 +459,7 @@ float TGauge::GetScaledValue() const {
|
||||
m_value
|
||||
* interpolate(
|
||||
m_scale, m_endscale,
|
||||
clamp(
|
||||
std::clamp(
|
||||
m_value / m_endvalue,
|
||||
0.f, 1.f ) )
|
||||
+ m_offset );
|
||||
|
||||
Reference in New Issue
Block a user