MCPcopy Create free account
hub / github.com/ddnet/ddnet / ClampDelta

Function ClampDelta

src/game/editor/editor.cpp:4450–4457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4448}
4449
4450static float ClampDelta(float Val, float Delta, float Min, float Max)
4451{
4452 if(Val + Delta <= Min)
4453 return Min - Val;
4454 if(Val + Delta >= Max)
4455 return Max - Val;
4456 return Delta;
4457}
4458
4459class CTimeStep
4460{

Callers 1

RenderEnvelopeEditorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected