From 0e6ae70d9b94ace8665faeca5666c08c8b7ecf2b Mon Sep 17 00:00:00 2001 From: lukaslw Date: Thu, 9 Oct 2014 18:43:17 +0200 Subject: PRINCE: Fix INT_MAX error - change it to kIntMax constant --- engines/prince/graphics.cpp | 2 +- engines/prince/prince.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/prince/graphics.cpp b/engines/prince/graphics.cpp index 36760874c1..cd4b62f7a5 100644 --- a/engines/prince/graphics.cpp +++ b/engines/prince/graphics.cpp @@ -409,7 +409,7 @@ byte GraphicsMan::getBlendTableColor(byte pixelColor, byte backgroundPixelColor, } currColor = 0; - bigValue = INT_MAX; // infinity + bigValue = PrinceEngine::kIntMax; // infinity for (int j = 0; j < 256; j++) { redSecondOrg = originalPalette[3 * j]; redNew = redFirstOrg - redSecondOrg; diff --git a/engines/prince/prince.h b/engines/prince/prince.h index e6d56b283e..3d10c671f0 100644 --- a/engines/prince/prince.h +++ b/engines/prince/prince.h @@ -353,6 +353,7 @@ public: static void plotShadowLinePoint(int x, int y, int color, void *data); static const int16 kFPS = 15; + static const int32 kIntMax = 2147483647; static const int16 kMaxPicWidth = 1280; static const int16 kMaxPicHeight = 480; -- cgit v1.2.3