[Scummvm-tracker] [ScummVM :: Bugs] #15036: SCUMM: Re-enable the missing answering machine message in Sam&Max
ScummVM :: Bugs
trac at scummvm.org
Tue May 7 05:51:13 UTC 2024
#15036: SCUMM: Re-enable the missing answering machine message in Sam&Max
----------------------------+----------------------------
Reporter: GermanTribun | Owner: (none)
Type: feature request | Status: new
Priority: normal | Component: Engine: SCUMM
Version: | Resolution:
Keywords: | Game: Sam and Max
----------------------------+----------------------------
Comment (by eriktorbjorn):
At least in the English CD version of the game, the other messages have a
sound, like this:
{{{
[03D3] (B4) printLine.msg(sound(0x1BD2BB, 0xA) + "<beep> Hello, is
this the Saint Francis Pie Shop?" + wait() + "I'd like to order 200 lemon
meringue pies and a small diet cola.")
}}}
(I don't remember off-hand what the parameters to sound() are, but I think
the first one is the exact offset into the monster.sou file, or something
like that.)
The fourth message, however, does not:
{{{
[04CE] (B4) printLine.msg("<beep> Snork! <Grunt>" + wait() +
"SQUEEEE!!!!" + wait() + "<Scronk> Yib!" + wait() + "<Click>")
}}}
I suppose it could be enabled for the floppy versions with something like
this:
{{{
diff --git a/engines/scumm/script_v6.cpp b/engines/scumm/script_v6.cpp
index 4229dd37e5c..85614396dbe 100644
--- a/engines/scumm/script_v6.cpp
+++ b/engines/scumm/script_v6.cpp
@@ -1525,7 +1525,12 @@ void ScummEngine_v6::o6_loadRoomWithEgo() {
void ScummEngine_v6::o6_getRandomNumber() {
int rnd = _rnd.getRandomNumber(0x7fff);
- rnd = rnd % (pop() + 1);
+ int max = pop();
+
+ if (enhancementEnabled(kEnhRestoredContent) && _game.id ==
GID_SAMNMAX && strcmp(_game.variant, "Floppy") == 0 && _currentRoom == 7
&& vm.slot[_currentScript].number == 205)
+ max = 4;
+
+ rnd = rnd % max;
if (VAR_RANDOM_NR != 0xFF)
VAR(VAR_RANDOM_NR) = rnd;
push(rnd);
}}}
But I don't own even a single floppy version, so I can't test it.
--
Ticket URL: <https://bugs.scummvm.org/ticket/15036#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list