[Scummvm-git-logs] scummvm master -> 298f44c49a5753aa9a5881950a1a13956105f9ff
dreammaster
noreply at scummvm.org
Sun Nov 29 23:32:58 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
298f44c49a MADS: DRAGONSPHERE: Removed duplicated if blocks in original
Commit: 298f44c49a5753aa9a5881950a1a13956105f9ff
https://github.com/scummvm/scummvm/commit/298f44c49a5753aa9a5881950a1a13956105f9ff
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-11-30T10:32:42+11:00
Commit Message:
MADS: DRAGONSPHERE: Removed duplicated if blocks in original
Changed paths:
engines/mads/dragonsphere/rooms/room411.cpp
engines/mads/dragonsphere/sound/asound.cpp
diff --git a/engines/mads/dragonsphere/rooms/room411.cpp b/engines/mads/dragonsphere/rooms/room411.cpp
index 4f26fea1468..e9d0065e11e 100644
--- a/engines/mads/dragonsphere/rooms/room411.cpp
+++ b/engines/mads/dragonsphere/rooms/room411.cpp
@@ -901,12 +901,6 @@ static void room_411_parser() {
} else {
text_show(41135);
}
- } else if (player_said_1(bird_figurine)) {
- if (object_is_here(soul_egg)) {
- text_show(41139);
- } else {
- text_show(41140);
- }
} else {
if (object_is_here(soul_egg)) {
text_show(41139);
@@ -914,6 +908,7 @@ static void room_411_parser() {
text_show(41140);
}
}
+
player.command_ready = false;
return;
}
diff --git a/engines/mads/dragonsphere/sound/asound.cpp b/engines/mads/dragonsphere/sound/asound.cpp
index 4ee55a0350b..99fd88ec604 100644
--- a/engines/mads/dragonsphere/sound/asound.cpp
+++ b/engines/mads/dragonsphere/sound/asound.cpp
@@ -624,17 +624,10 @@ void ASound::writeVolume() {
write((uint8)(tlReg + 2), (uint8)reg2val);
}
- /* For the alg!=0 single-pass case we only run this once (var6==1).
- * For the alg==0 two-pass case, record both sets. */
- if (var6 == 1) {
- finalSi = si;
- finalDi = di;
- } else {
- /* var6==0: record si/di for the mod pass; di is overwritten on
- * the carrier pass so we use si for the high byte of field_2A. */
- finalSi = si;
- finalDi = di;
- }
+ /* The original just leaves these in registers, overwritten every
+ * pass, so only the last pass's values survive the loop. */
+ finalSi = si;
+ finalDi = di;
}
/* Cache the written TL bytes in field_2A:
More information about the Scummvm-git-logs
mailing list