diff options
Diffstat (limited to 'engines/titanic/star_control/star_points1.cpp')
-rw-r--r-- | engines/titanic/star_control/star_points1.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/star_control/star_points1.cpp b/engines/titanic/star_control/star_points1.cpp index cf5c98ebf4..7e3a79b6d9 100644 --- a/engines/titanic/star_control/star_points1.cpp +++ b/engines/titanic/star_control/star_points1.cpp @@ -21,7 +21,7 @@ */ #include "titanic/star_control/star_points1.h" -#include "titanic/star_control/star_control_sub12.h" +#include "titanic/star_control/star_camera.h" #include "titanic/titanic.h" namespace Titanic { @@ -57,12 +57,12 @@ bool CStarPoints1::initialize() { return true; } -void CStarPoints1::draw(CSurfaceArea *surface, CStarControlSub12 *sub12) { +void CStarPoints1::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; FVector vTemp = _data[0]; double vWidth2 = (double)surface->_width * 0.5; @@ -88,8 +88,8 @@ void CStarPoints1::draw(CSurfaceArea *surface, CStarControlSub12 *sub12) { vector3._z = vTemp._x * pose._row1._z + vTemp._y * pose._row2._z + vTemp._z * pose._row3._z + pose._vector._z; if (flag && 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; |