diff options
author | Paul Gilbert | 2017-05-30 16:42:11 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-05-30 16:42:11 -0400 |
commit | 0d35da379135650c70f3a317d3f907b7bd39f0df (patch) | |
tree | ff3948d05ee3ccfb520a1a9cca5ef83105ef91a1 /engines/titanic/star_control | |
parent | a8475db05a209f83bd0d33e4db3e66cfb1c81566 (diff) | |
download | scummvm-rg350-0d35da379135650c70f3a317d3f907b7bd39f0df.tar.gz scummvm-rg350-0d35da379135650c70f3a317d3f907b7bd39f0df.tar.bz2 scummvm-rg350-0d35da379135650c70f3a317d3f907b7bd39f0df.zip |
TITANIC: Fix vector calculation for markers drawing
Diffstat (limited to 'engines/titanic/star_control')
-rw-r--r-- | engines/titanic/star_control/star_markers.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/titanic/star_control/star_markers.cpp b/engines/titanic/star_control/star_markers.cpp index a65b61151d..f9867d72df 100644 --- a/engines/titanic/star_control/star_markers.cpp +++ b/engines/titanic/star_control/star_markers.cpp @@ -41,13 +41,12 @@ void CStarMarkers::draw(CSurfaceArea *surfaceArea, CStarCamera *camera, CStarClo for (uint idx = 0; idx < _data.size(); ++idx) { const CBaseStarEntry &star = _data[idx]; - newV._x = pose._row1._x * star._position._x + pose._row3._x * star._position._z + pose._row2._x * star._position._y + pose._vector._x; newV._y = pose._row1._y * star._position._x + pose._row3._y * star._position._z - + pose._row2._y * star._position._x + pose._vector._y; + + pose._row2._y * star._position._y + pose._vector._y; newV._z = pose._row1._z * star._position._x + pose._row3._z * star._position._z - + pose._row2._z * star._position._y + pose._vector._z; + + pose._row2._z * star._position._y + pose._vector._z; if (newV._z > threshold) { FVector vTemp = camera->proc28(2, newV); |