Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
getcvarfixed [2019/04/22 19:44] – korshun | getcvarfixed [2019/08/26 01:30] (current) – korshun |
---|
====== GetCVarFixed ====== | ====== GetCVarFixed ====== |
| |
ZDoom provides [[zdoom>GetCVar]] for ints and [[zdoom>GetCVarString]] for strings, but doesn't provide a way to retrieve the value of ''float'' CVars. ACSUtils implements ''GetCVarFixed'' by calling [[zdoom>GetCVarString]] to retrieve the value of the CVar as a string, and parsing it with [[number_parsing#atof|atof]]. | ZDoom provides [[zdoom>GetCVar]] for ints and [[zdoom>GetCVarString]] for strings, but doesn't provide a way to retrieve the value of ''float'' CVars. ACSUtils implements ''GetCVarFixed'' by calling [[zdoom>GetCVarString]] to retrieve the value of the CVar as a string, and parsing it with [[number_parsing|atof]]. |
| |
| |