SCUMM: GFX: Simplify expression and fix truncation issue

This commit is contained in:
AndywinXp 2024-05-01 19:48:15 +02:00
parent 8ce0c0bb5c
commit e1bb816a50

View File

@ -4309,7 +4309,7 @@ void ScummEngine::transitionEffect(int a) {
if (_game.version >= 3 || _game.platform == Common::kPlatformNES) {
numOfIterations = transitionEffects[a].numOfIterations;
} else {
numOfIterations = (a == 0 || a == 4) ? ceil((height / 8.0) / 2) : height / 8;
numOfIterations = (a == 0 || a == 4) ? ceil((double)height / 16.0) : height / 8;
}
for (i = 0; i < 16; i++) {