diff options
-rw-r--r-- | engines/titanic/star_control/fvector.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/titanic/star_control/fvector.cpp b/engines/titanic/star_control/fvector.cpp index 666b22eb3a..da7f37cebc 100644 --- a/engines/titanic/star_control/fvector.cpp +++ b/engines/titanic/star_control/fvector.cpp @@ -71,7 +71,11 @@ double FVector::getDistance(const FVector &src) const { } FVector FVector::fn5(const CStarControlSub6 *sub6) const { - error("TODO: FVector::fn5"); + FVector v; + v._x = sub6->_row2._x * _y + sub6->_row3._x * _z + sub6->_row1._x * _x + sub6->_vector._x; + v._y = sub6->_row2._y * _y + sub6->_row3._y * _z + sub6->_row1._y * _x + sub6->_vector._y; + v._z = sub6->_row3._z * _z + sub6->_row2._z * _y + sub6->_row1._z * _x + sub6->_vector._z; + return v; } } // End of namespace Titanic |