ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


getcvarfixed

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
getcvarfixed [2019/04/22 22:44]
korshun
getcvarfixed [2019/08/26 04:30] (current)
korshun
Line 1: Line 1:
 ====== 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]].
  
  
getcvarfixed.txt ยท Last modified: 2019/08/26 04:30 by korshun