From 3d513ebd25efdf606a22d1e6fd14e7db857aec37 Mon Sep 17 00:00:00 2001 From: Matthew Duggan Date: Sat, 30 Nov 2024 14:13:24 +1100 Subject: [PATCH] DGDS: Fix accidental replacement of 320 with SCREEN_WIDTH This 320 represents the number of palette fade steps. --- engines/dgds/ttm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/dgds/ttm.cpp b/engines/dgds/ttm.cpp index f434ff50655f..3a403a6ec804 100644 --- a/engines/dgds/ttm.cpp +++ b/engines/dgds/ttm.cpp @@ -784,7 +784,7 @@ void TTMInterpreter::handleOperation(TTMEnviro &env, TTMSeq &seq, uint16 op, byt // Speed 4 should complete fade in 2 seconds (eg, Dynamix logo fade) // TODO: this is a pretty bad way to do it - should pump messages in this loop? - for (int i = 0; i < SCREEN_WIDTH; i += ivals[3]) { + for (int i = 0; i < 320; i += ivals[3]) { int fade = MIN(i / 5, 63); _vm->getGamePals()->setFade(ivals[0], ivals[1], ivals[2], fade * 4); g_system->updateScreen();