diff options
Diffstat (limited to 'engines/titanic/star_control/star_points2.cpp')
-rw-r--r-- | engines/titanic/star_control/star_points2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/star_control/star_points2.cpp b/engines/titanic/star_control/star_points2.cpp index 7dec3f8605..9adbd1c8b7 100644 --- a/engines/titanic/star_control/star_points2.cpp +++ b/engines/titanic/star_control/star_points2.cpp @@ -21,7 +21,7 @@ */ #include "titanic/star_control/star_points2.h" -#include "titanic/star_control/star_control_sub12.h" +#include "titanic/star_control/star_camera.h" #include "titanic/titanic.h" namespace Titanic { @@ -62,12 +62,12 @@ bool CStarPoints2::initialize() { return true; } -void CStarPoints2::draw(CSurfaceArea *surface, CStarControlSub12 *sub12) { +void CStarPoints2::draw(CSurfaceArea *surface, CStarCamera *camera) { if (_data.empty()) return; - FPose pose = sub12->proc23(); - double threshold = sub12->proc25(); + FPose pose = camera->proc23(); + double threshold = camera->proc25(); FVector vector1, vector2, vector3, vector4; double vWidth2 = (double)surface->_width * 0.5; double vHeight2 = (double)surface->_height * 0.5; @@ -99,8 +99,8 @@ void CStarPoints2::draw(CSurfaceArea *surface, CStarControlSub12 *sub12) { + pose._row1._y * se._v2._x + pose._vector._y; if (vector1._z > threshold && vector3._z > threshold) { - vector2 = sub12->proc28(2, vector1); - vector4 = sub12->proc28(2, vector3); + vector2 = camera->proc28(2, vector1); + vector4 = camera->proc28(2, vector3); r.bottom = vector4._y + vHeight2; r.right = vector4._x + vWidth2; |