aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control
diff options
context:
space:
mode:
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) {