diff options
author | Paul Gilbert | 2017-04-07 21:52:36 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-04-07 21:52:36 -0400 |
commit | 60bad801448d6ebec2a228a6d91f1638edd5ab9d (patch) | |
tree | 104f883b73d4d6ffd8d335948f1214731b647b79 /engines/titanic/star_control/star_control_sub13.cpp | |
parent | b4a6ec62c2c5cc37c6e4a4ddae096411ace58875 (diff) | |
download | scummvm-rg350-60bad801448d6ebec2a228a6d91f1638edd5ab9d.tar.gz scummvm-rg350-60bad801448d6ebec2a228a6d91f1638edd5ab9d.tar.bz2 scummvm-rg350-60bad801448d6ebec2a228a6d91f1638edd5ab9d.zip |
TITANIC: Shift vector returns from params to return values
Diffstat (limited to 'engines/titanic/star_control/star_control_sub13.cpp')
-rw-r--r-- | engines/titanic/star_control/star_control_sub13.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/titanic/star_control/star_control_sub13.cpp b/engines/titanic/star_control/star_control_sub13.cpp index bbf7fe6f7e..49bcdbcef7 100644 --- a/engines/titanic/star_control/star_control_sub13.cpp +++ b/engines/titanic/star_control/star_control_sub13.cpp @@ -199,15 +199,17 @@ FPose CStarControlSub13::getSub2() { return _sub2; } -void CStarControlSub13::fn16(int index, const FVector &src, FVector &dest) { +FVector CStarControlSub13::fn16(int index, const FVector &src) { FPose temp = getSub1(); + FVector dest; dest._x = temp._row3._x * src._z + temp._row2._x * src._y + src._x * temp._row1._x + temp._vector._x; dest._y = temp._row3._y * src._z + temp._row2._y * src._y + src._x * temp._row1._y + temp._vector._y; dest._z = temp._row3._z * src._z + temp._row2._z * src._y + src._x * temp._row1._z + temp._vector._z; + return dest; } FVector CStarControlSub13::fn17(int index, const FVector &src) { |