View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0002835 | Zandronum | [All Projects] Suggestion | public | 2016-09-13 23:09 | 2016-09-13 23:27 |
|
Reporter | Gummywormz | |
Assigned To | | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | acknowledged | Resolution | waiting for zdoom | |
Platform | Microsoft | OS | Windows | OS Version | 98/ME |
Product Version | 3.0-beta | |
Target Version | | Fixed in Version | | |
|
Summary | 0002835: Make cvars of type float return a float in the console |
Description | 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. |
Steps To Reproduce | 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) |
|
Attached Files | |
|