Skip to content

Commit

Permalink
DGDS: Fix accidental replacement of 320 with SCREEN_WIDTH
Browse files Browse the repository at this point in the history
This 320 represents the number of palette fade steps.
  • Loading branch information
mduggan authored and bluegr committed Nov 30, 2024
1 parent e18c2bf commit 3d513eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/dgds/ttm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3d513eb

Please sign in to comment.