aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2012-07-09 01:27:39 +0300
committerFilippos Karapetis2012-07-09 01:33:38 +0300
commit078c09c13e5ffa2266bccfd85c38a93d730a02e6 (patch)
tree83f44f4b05bcba7da0f785da543a2f150257e1e9 /engines
parentd2db9c1253580646e2b8f15eec7dc3b423292399 (diff)
downloadscummvm-rg350-078c09c13e5ffa2266bccfd85c38a93d730a02e6.tar.gz
scummvm-rg350-078c09c13e5ffa2266bccfd85c38a93d730a02e6.tar.bz2
scummvm-rg350-078c09c13e5ffa2266bccfd85c38a93d730a02e6.zip
SCI: Update comments in kGetAngleWorker()
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kmath.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/engine/kmath.cpp b/engines/sci/engine/kmath.cpp
index 05c8845288..a643fbe37a 100644
--- a/engines/sci/engine/kmath.cpp
+++ b/engines/sci/engine/kmath.cpp
@@ -89,6 +89,9 @@ uint16 kGetAngleWorker(int16 x1, int16 y1, int16 x2, int16 y2) {
// differences from the original, which uses custom implementation of atan().
// The differences in the return values are the cause of bug #3540976
// and perhaps bug #3037267 as well.
+ // The results of this function match the expected results of SCI0, but not
+ // SCI1 (hence the bug in Longbow). We need to find the point in history
+ // when this function was changed.
// HACK: Return the expected value for Longbow, scene 150 (bug #3540976).
// This is a temporary solution, till the function returns the expected
@@ -128,7 +131,6 @@ uint16 kGetAngleWorker(int16 x1, int16 y1, int16 x2, int16 y2) {
// Convert from grads to degrees by merging grad 0 with grad 1,
// grad 10 with grad 11, grad 20 with grad 21, etc. This leads to
// "degrees" that equal either one or two grads.
- // This subtraction is meant to change from 400 "degrees" into 360 degrees
angle -= (angle + 9) / 10;
return angle;
}