Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| new:getcvarfixed [2018/02/16 19:56] – korshun | new:getcvarfixed [2019/04/22 19:44] (current) – removed korshun |
|---|
| ====== GetCVarFixed ====== | |
| |
| * ''fixed a_GetCVarFixed(str name)'' | |
| * ''fixed a_GetUserCVarFixed(int player, str name)'' | |
| |
| ZDoom doesn't provide a version of [[zdoom>GetCVar]] that returns the value of a float cvar. | |
| |
| ACSUtils implements GetCVarFixed and GetUserCVarFixed by calling [[zdoom>GetCVarString]] to retrieve its value as a string and parsing that string using ACSUtils [[number parsing functions]]. | |
| |
| <note important>The functions have an ''a_'' prefix, because [[GDCC]] has its own unrelated ''GetCVarFixed'', which would cause a compiler error in GDCC if the functions were called just ''GetCVarFixed'' and ''GetUserCVarFixed''.</note> | |