Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddnet/ddnet
/ SetValueInstant
Method
SetValueInstant
src/game/editor/smooth_value.cpp:79–83 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
77
}
78
79
void CSmoothValue::SetValueInstant(float Target)
80
{
81
m_Smoothing = false;
82
m_Value = std::clamp(Target, m_MinValue, m_MaxValue);
83
}
84
85
void CSmoothValue::SetValueRange(float MinValue, float MaxValue)
86
{
Callers
1
ResetZoomEnvelope
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected