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

Method SetFloat

src/game/client/lineinput.cpp:721–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721void CLineInputNumber::SetFloat(float Number)
722{
723 char aBuf[32];
724 str_format(aBuf, sizeof(aBuf), "%.3f", Number);
725 if(str_comp(aBuf, GetString()) != 0)
726 Set(aBuf);
727}
728
729float CLineInputNumber::GetFloat() const
730{

Callers 2

PopupEnvPointMethod · 0.80
PopupAnimateSettingsMethod · 0.80

Calls 2

str_formatFunction · 0.85
str_compFunction · 0.85

Tested by

no test coverage detected