Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
getcvarfixed [2019/04/22 22:41] – korshun | getcvarfixed [2019/04/22 22:44] – korshun |
---|
| |
| |
<note important>If the CVar's value is outside the range of fixed-point numbers, the functions return ''-32768.0''.</note> | <note important>If the CVar's value is outside the range of fixed-point numbers, the result is clamped to ''-32768.0''..''32767.99997'' range.</note> |
| |
<note important>The functions names begin with ''a_'' because [[GDCC]] defines its own broken ''GetCVarFixed'', which causes a compilation error if another function named ''GetCVarFixed'' exists.</note> | <note important>The function names begin with ''a_'' because [[GDCC]] defines its own broken ''GetCVarFixed'', which causes a compilation error if another function named ''GetCVarFixed'' exists.</note> |
| |
<note tip>If you're not using [[GDCC]], you can remove the ''a_'' prefix by adding the following to your code: | <note tip>If you're not using [[GDCC]], you can remove the ''a_'' prefix by adding the following to your code: |