diff options
author | Willem Jan Palenstijn | 2017-04-02 19:26:34 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2017-04-02 19:26:34 +0200 |
commit | 1f373283a82b7dc7c2f0bf93fb0eda705c1d4082 (patch) | |
tree | ee673f22f9f87b01911bc7aac1dce26e61f71966 /engines | |
parent | 027dc4c38c033dcae3dd0ed485b56f587ee05b44 (diff) | |
download | scummvm-rg350-1f373283a82b7dc7c2f0bf93fb0eda705c1d4082.tar.gz scummvm-rg350-1f373283a82b7dc7c2f0bf93fb0eda705c1d4082.tar.bz2 scummvm-rg350-1f373283a82b7dc7c2f0bf93fb0eda705c1d4082.zip |
TITANIC: Fix warnings
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/star_control/base_star.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/titanic/star_control/base_star.cpp b/engines/titanic/star_control/base_star.cpp index ad94912107..0652a8b166 100644 --- a/engines/titanic/star_control/base_star.cpp +++ b/engines/titanic/star_control/base_star.cpp @@ -350,9 +350,9 @@ void CBaseStar::draw3(CSurfaceArea *surfaceArea, CStarControlSub12 *sub12, CStar if (tempZ <= minVal) continue; - double tempY = vector._x * sub6._row1._y + vector._y * sub6._row2._y + vector._z * sub6._row3._y + sub6._vector._y; - double tempX = vector._x * sub6._row1._x + vector._y * sub6._row2._x + vector._z * sub6._row3._x + sub6._vector._x; - double total2 = tempY * tempY + tempX * tempX + tempZ * tempZ; + tempY = vector._x * sub6._row1._y + vector._y * sub6._row2._y + vector._z * sub6._row3._y + sub6._vector._y; + tempX = vector._x * sub6._row1._x + vector._y * sub6._row2._x + vector._z * sub6._row3._x + sub6._vector._x; + total2 = tempY * tempY + tempX * tempX + tempZ * tempZ; if (total2 < 1.0e12) { sub5->proc2(&sub6, vector, centroid._x, centroid._y, total2, |