diff options
author | Paweł Kołodziejski | 2005-08-08 12:58:56 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2005-08-08 12:58:56 +0000 |
commit | 753ff5a92673c1eb714bc74b3b825b50b3c96a43 (patch) | |
tree | 247e0012d3b1d3036467c497bfaf0159572338c0 /scumm | |
parent | b22caf6fdc865fc00c263cded7e66838e2923c8e (diff) | |
download | scummvm-rg350-753ff5a92673c1eb714bc74b3b825b50b3c96a43.tar.gz scummvm-rg350-753ff5a92673c1eb714bc74b3b825b50b3c96a43.tar.bz2 scummvm-rg350-753ff5a92673c1eb714bc74b3b825b50b3c96a43.zip |
added replacement code for hypot()
svn-id: r18636
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/logic_he.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/logic_he.cpp b/scumm/logic_he.cpp index 647fbaafaf..42f7bd1c09 100644 --- a/scumm/logic_he.cpp +++ b/scumm/logic_he.cpp @@ -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; |