aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control
diff options
context:
space:
mode:
authorPaul Gilbert2017-03-26 12:21:28 -0400
committerPaul Gilbert2017-03-26 12:21:28 -0400
commit96b31ca5eb82af59f0032ecae7277fa36fb8eedf (patch)
tree6dc54ae5ccb48c2057aa87623bbee6ba06c1c0af /engines/titanic/star_control
parent56cc97caff075b3c8194b4c018de0888b803a779 (diff)
downloadscummvm-rg350-96b31ca5eb82af59f0032ecae7277fa36fb8eedf.tar.gz
scummvm-rg350-96b31ca5eb82af59f0032ecae7277fa36fb8eedf.tar.bz2
scummvm-rg350-96b31ca5eb82af59f0032ecae7277fa36fb8eedf.zip
TITANIC: Compilation fix for openpandora
Diffstat (limited to 'engines/titanic/star_control')
-rw-r--r--engines/titanic/star_control/base_star.cpp6
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 a7acdfa2ce..b2756c65ab 100644
--- a/engines/titanic/star_control/base_star.cpp
+++ b/engines/titanic/star_control/base_star.cpp
@@ -200,9 +200,9 @@ void CBaseStar::draw1(CSurfaceArea *surfaceArea, CStarControlSub12 *sub12, CStar
double sVal = sqrt(total2);
sVal = (sVal < 100000.0) ? 1.0 : 1.0 - ((sVal - 100000.0) / 1.0e9);
- double red = MIN((double)entry._red * sVal, 255.0);
- double green = MIN((double)entry._green * sVal, 255.0);
- double blue = MIN((double)entry._green * sVal, 255.0);
+ double red = MIN((double)entry._red * sVal, (double)255.0);
+ double green = MIN((double)entry._green * sVal, (double)255.0);
+ double blue = MIN((double)entry._green * sVal, (double)255.0);
int minusCount = 0;
if (red < 0.0) {