- fixed float <-> fixed conversion errors in Fragglescript.

This commit is contained in:
Christoph Oelckers 2016-04-08 15:14:26 +02:00
commit 39d03f12b1
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ double floatvalue(const svalue_t &v)
{
return
v.type == svt_string ? atof(v.string) :
v.type == svt_fixed ? v.value.f * 65536. :
v.type == svt_fixed ? v.value.f / 65536. :
v.type == svt_mobj ? -1. : (double)v.value.i;
}