Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision |
new:getcvarfixed [2018/02/17 14:34] – korshun | new:getcvarfixed [2018/02/19 12:58] – korshun |
---|
ZDoom doesn't provide a version of [[zdoom>GetCVar]] that returns the value of a float cvar. | ZDoom doesn't provide a version of [[zdoom>GetCVar]] that returns the value of a float cvar. |
| |
ACSUtils implements ''a_GetCVarFixed'' and ''a_GetUserCVarFixed'' by calling [[zdoom>GetCVarString]] to retrieve its value as a string and parsing that string using ACSUtils [[number parsing functions]]. | ACSUtils implements ''a_GetCVarFixed'' and ''a_GetUserCVarFixed'' by calling [[zdoom>GetCVarString]] to retrieve its value as a string and parsing that string using ACSUtils [[new:number_parsing|number parsing functions]]. |
| |
The functions have an ''a_'' prefix, because [[GDCC]] has its own unrelated ''GetCVarFixed'' function, which would cause a compiler error in GDCC if the ACSUtils functions were just called ''GetCVarFixed'' and ''GetUserCVarFixed''. | The functions have an ''a_'' prefix, because [[GDCC]] has its own unrelated ''GetCVarFixed'' function, which would cause a compiler error in GDCC if the ACSUtils functions were just called ''GetCVarFixed'' and ''GetUserCVarFixed''. |