mirror of
https://github.com/ZDoom/zdbsp.git
synced 2024-11-21 19:32:31 +00:00
- Woops. Scale the value for the error message back to a float.
SVN r2489 (trunk)
This commit is contained in:
parent
35f754610a
commit
8a58580de2
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ fixed_t CheckFixed(const char *key)
|
|||
double val = CheckFloat(key) * 65536;
|
||||
if (val < double(INT_MIN) || val > double(INT_MAX))
|
||||
{
|
||||
SC_ScriptError("Fixed point value is out of range for key '%s'\n\t%.2f should be within [-32768,32767]", key, val);
|
||||
SC_ScriptError("Fixed point value is out of range for key '%s'\n\t%.2f should be within [-32768,32767]", key, val / 65536);
|
||||
}
|
||||
return fixed_t(val);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue