mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
- removed incorrect multiplication from FraggleScript's PointToDist function. The problem was introduced by replacing a (fixed_t) type cast with FLOATTOFIXED without removing the value range adjustment.
This commit is contained in:
parent
4d59190446
commit
5febac0994
1 changed files with 1 additions and 1 deletions
|
@ -1420,7 +1420,7 @@ void FParser::SF_PointToDist(void)
|
||||||
double y = floatvalue(t_argv[3]) - floatvalue(t_argv[1]);
|
double y = floatvalue(t_argv[3]) - floatvalue(t_argv[1]);
|
||||||
|
|
||||||
t_return.type = svt_fixed;
|
t_return.type = svt_fixed;
|
||||||
t_return.value.f = FLOAT2FIXED(sqrt(x*x+y*y)*65536.f);
|
t_return.value.f = FLOAT2FIXED(sqrt(x*x+y*y));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue