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 fe40560e43..db1a88ec85 100644
--- a/scumm/logic_he.cpp
+++ b/scumm/logic_he.cpp
@@ -153,7 +153,7 @@ int32 LogicHErace::dispatch(int op, int numArgs, int32 *args) {
int32 LogicHErace::op_1003(int32 *args) {
int value = args[2] ? args[2] : 1;
- writeScummVar(108, (int32)(atan2(args[0], args[1]) * RAD2DEG * value));
+ writeScummVar(108, (int32)(atan2((double)args[0], (double)args[1]) * RAD2DEG * value));
return 1;
}