16
0
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:
docentYT
2026-05-01 22:14:29 +02:00
parent 1bdd000443
commit d1f16411a1
36 changed files with 271 additions and 287 deletions

View File

@@ -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 );