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

Method GetFloat

src/engine/shared/console.cpp:73–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73float CConsole::CResult::GetFloat(unsigned Index) const
74{
75 if(Index >= m_NumArgs)
76 return 0.0f;
77 float Out;
78 return str_tofloat(m_apArgs[Index], &Out) ? Out : 0.0f;
79}
80
81ColorHSLA CConsole::CResult::GetColor(unsigned Index, float DarkestLighting) const
82{

Callers 1

Con_DemoSpeedMethod · 0.45

Calls 1

str_tofloatFunction · 0.85

Tested by

no test coverage detected