Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1114
void CDemoPlayer::AdjustSpeedIndex(int Offset)
1115
{
1116
SetSpeedIndex(std::clamp(m_SpeedIndex + Offset, 0, (int)(std::size(DEMO_SPEEDS) - 1)));
1117
}
1118
1119
void CDemoPlayer::Update(bool RealTime)
1120
{
Callers
1
RenderDemoPlayer
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected