diff --git a/processor_udmf.cpp b/processor_udmf.cpp index dcab043..2e4f44c 100644 --- a/processor_udmf.cpp +++ b/processor_udmf.cpp @@ -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); }