aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/logic_he.cpp2
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;