[Scummvm-git-logs] scummvm master -> 96b31ca5eb82af59f0032ecae7277fa36fb8eedf
dreammaster
dreammaster at scummvm.org
Sun Mar 26 18:21:38 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
96b31ca5eb TITANIC: Compilation fix for openpandora
Commit: 96b31ca5eb82af59f0032ecae7277fa36fb8eedf
https://github.com/scummvm/scummvm/commit/96b31ca5eb82af59f0032ecae7277fa36fb8eedf
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-03-26T12:21:28-04:00
Commit Message:
TITANIC: Compilation fix for openpandora
Changed paths:
engines/titanic/star_control/base_star.cpp
diff --git a/engines/titanic/star_control/base_star.cpp b/engines/titanic/star_control/base_star.cpp
index a7acdfa..b2756c6 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) {
More information about the Scummvm-git-logs
mailing list