aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/fvector.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-03-12 09:51:23 -0400
committerPaul Gilbert2017-03-12 09:51:23 -0400
commit7887189b5aa806a38c06253f535b7eb78e250f53 (patch)
tree597c712a8073eac9268506ea452fecc0c1ebf423 /engines/titanic/star_control/fvector.cpp
parentcfdecfe10cd9f04237ba8998be44ac45261113f5 (diff)
downloadscummvm-rg350-7887189b5aa806a38c06253f535b7eb78e250f53.tar.gz
scummvm-rg350-7887189b5aa806a38c06253f535b7eb78e250f53.tar.bz2
scummvm-rg350-7887189b5aa806a38c06253f535b7eb78e250f53.zip
TITANIC: Finished CStarControlSub23 class
Diffstat (limited to 'engines/titanic/star_control/fvector.cpp')
-rw-r--r--engines/titanic/star_control/fvector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/star_control/fvector.cpp b/engines/titanic/star_control/fvector.cpp
index aa99e8b4d1..de33bcf2a0 100644
--- a/engines/titanic/star_control/fvector.cpp
+++ b/engines/titanic/star_control/fvector.cpp
@@ -40,13 +40,14 @@ void FVector::multiply(FVector *dest, const FVector *src) {
dest->_z = (src->_y * _x) - (_y * src->_x);
}
-void FVector::fn3() {
+double FVector::fn3() {
double hyp = sqrt(_x * _x + _y * _y + _z * _z);
assert(hyp);
_x *= 1.0 / hyp;
_y *= 1.0 / hyp;
_z *= 1.0 / hyp;
+ return hyp;
}
double FVector::getDistance(const FVector *src) const {