mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
added replacement code for hypot()
svn-id: r18636
This commit is contained in:
parent
b22caf6fdc
commit
753ff5a926
@ -424,7 +424,7 @@ void LogicHEfunshop::op_1004(int32 *args) {
|
||||
|
||||
for (i = 0; i <= 6; i += 2) {
|
||||
at = atan2(data[i + 1], data[i]);
|
||||
sq = hypot(data[i + 1], data[i]);
|
||||
sq = sqrt(data[i + 1] * data[i + 1] + data[i] * data[i]);
|
||||
|
||||
if (at <= 0)
|
||||
at += 2 * PI;
|
||||
|
Loading…
Reference in New Issue
Block a user