ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:getcvarfixed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
new:getcvarfixed [2018/02/19 12:58] korshunnew:getcvarfixed [2019/04/22 22:44] (current) – removed korshun
Line 1: Line 1:
-====== 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 ''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''. 
new/getcvarfixed.1519037935.txt.gz · Last modified: 2018/02/19 12:58 by korshun