diff options
author | Strangerke | 2019-09-13 02:06:34 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-13 22:07:08 +0100 |
commit | ac362bafa764dd84e1a6398ca7601e056c3c5142 (patch) | |
tree | d4beb0aeb1a7db3549bcc48c0dc093def3a78b32 /engines | |
parent | 775aa1a63b4d44d2eb77b3e53c4e10348440a6e2 (diff) | |
download | scummvm-rg350-ac362bafa764dd84e1a6398ca7601e056c3c5142.tar.gz scummvm-rg350-ac362bafa764dd84e1a6398ca7601e056c3c5142.tar.bz2 scummvm-rg350-ac362bafa764dd84e1a6398ca7601e056c3c5142.zip |
GRIFFON: Fix bug introduced in original C conversion
Diffstat (limited to 'engines')
-rw-r--r-- | engines/griffon/cutscenes.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/griffon/cutscenes.cpp b/engines/griffon/cutscenes.cpp index a61f5643dd..72fc08de39 100644 --- a/engines/griffon/cutscenes.cpp +++ b/engines/griffon/cutscenes.cpp @@ -417,14 +417,10 @@ void GriffonEngine::endOfGame() { do { if (_ticks < ticks1 + 1500) { y1 = 255 * (_ticks - ticks1) / 1500; - - if (y1 < 0) - y1 = 0; - if (y1 > 255) - y1 = 255; - else - break; + y1 = CLIP(y1, 0, 255); } + else + break; _videobuffer->fillRect(Common::Rect(0, 0, _videobuffer->w, _videobuffer->h), 0); |