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

Method AdjustSpeedIndex

src/engine/shared/demo.cpp:1114–1117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112}
1113
1114void CDemoPlayer::AdjustSpeedIndex(int Offset)
1115{
1116 SetSpeedIndex(std::clamp(m_SpeedIndex + Offset, 0, (int)(std::size(DEMO_SPEEDS) - 1)));
1117}
1118
1119void CDemoPlayer::Update(bool RealTime)
1120{

Callers 1

RenderDemoPlayerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected