diff options
author | Paul Gilbert | 2017-01-15 10:21:52 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-01-15 10:21:52 -0500 |
commit | c11f32f4aa278d707f25427f67a5bf729c18855f (patch) | |
tree | 5f825860dac4a2cbb9112b8e380871abb60c553b /engines/titanic/star_control | |
parent | baf6b58313d74ea0fad8c321b1ae88bccb8a63da (diff) | |
download | scummvm-rg350-c11f32f4aa278d707f25427f67a5bf729c18855f.tar.gz scummvm-rg350-c11f32f4aa278d707f25427f67a5bf729c18855f.tar.bz2 scummvm-rg350-c11f32f4aa278d707f25427f67a5bf729c18855f.zip |
TITANIC: Further compiler warning fixes
Diffstat (limited to 'engines/titanic/star_control')
-rw-r--r-- | engines/titanic/star_control/star_points2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/titanic/star_control/star_points2.cpp b/engines/titanic/star_control/star_points2.cpp index 4fea298f93..97047181fd 100644 --- a/engines/titanic/star_control/star_points2.cpp +++ b/engines/titanic/star_control/star_points2.cpp @@ -47,9 +47,9 @@ bool CStarPoints2::initialize() { v2 = stream->readSint32LE(); v1 *= 0.015 * FACTOR; v2 *= 0.0099999998 * FACTOR; - entry._v1 = cos(v1) * 3000000.0 * cos(v2); - entry._v2 = sin(v1) * 3000000.0 * cos(v2); - entry._v3 = sin(v2) * 3000000.0; + entry._v1 = static_cast<int>(cos(v1) * 3000000.0 * cos(v2)); + entry._v2 = static_cast<int>(sin(v1) * 3000000.0 * cos(v2)); + entry._v3 = static_cast<int>(sin(v2) * 3000000.0); } } |