MantisBT - Zandronum
View Issue Details
0002835Zandronum[All Projects] Suggestionpublic2016-09-13 23:092016-09-13 23:27
Gummywormz 
 
normalminoralways
acknowledgedwaiting for zdoom 
MicrosoftWindows98/ME
3.0-beta 
 
0002835: Make cvars of type float return a float in the console
So I was playing around with getting some cvar values using GetCVar, and noticed certain ones (e.g. chase_dist) would return incorrect values. I then noticed that shifting the value right by 16, or printing it as a float in acs fixed this issue. There is no indication internally what type these values are. I suggest making it clear which values are float by adding a .0 to the end of them in the console.
Set a float cvar (chase_dist or gamma) to a whole number. Get the value of this cvar by typing it in the console. It will appear as a whole number (e.g. 30) instead of as a float (e.g. 30.0)
No tags attached.
Issue History
2016-09-13 23:09GummywormzNew Issue
2016-09-13 23:27DuskNote Added: 0015636
2016-09-13 23:27DuskStatusnew => acknowledged
2016-09-13 23:27DuskResolutionopen => waiting for zdoom

Notes
(0015636)
Dusk   
2016-09-13 23:27   
This should go to ZDoom first.