[Scummvm-git-logs] scummvm master -> 0653cfe97a688f146b72ea0ed20eecc69b22c263
dreammaster
noreply at scummvm.org
Sat Jun 27 23:06:34 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:
0653cfe97a MADS: FOREST: Woarkaround for invalid kernel_synch calls in room 307
Commit: 0653cfe97a688f146b72ea0ed20eecc69b22c263
https://github.com/scummvm/scummvm/commit/0653cfe97a688f146b72ea0ed20eecc69b22c263
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-06-28T09:00:56+10:00
Commit Message:
MADS: FOREST: Woarkaround for invalid kernel_synch calls in room 307
Changed paths:
engines/mads/madsv2/forest/rooms/room307.cpp
diff --git a/engines/mads/madsv2/forest/rooms/room307.cpp b/engines/mads/madsv2/forest/rooms/room307.cpp
index 8a185d078b1..0e53d188361 100644
--- a/engines/mads/madsv2/forest/rooms/room307.cpp
+++ b/engines/mads/madsv2/forest/rooms/room307.cpp
@@ -702,8 +702,12 @@ static void room_307_daemon() {
kernel_position_anim(scratch._a6, 18, 130, 95, 3);
scratch._a8 = kernel_run_animation_talk('e', 6, 0);
kernel_position_anim(scratch._a8, 71, 81, 87, 7);
- kernel_synch(KERNEL_ANIM, scratch._a8, KERNEL_ANIM, scratch._9a);
- kernel_synch(KERNEL_ANIM, scratch._a6, KERNEL_ANIM, scratch._9c);
+
+ // WORKAROUND: In the original when first entering room _9a & _9c == -1, which caused a
+ // wobbly in kernel_synch. Hence the conditional check to set master_type to PLAYER
+ kernel_synch(KERNEL_ANIM, scratch._a8, (scratch._9a == -1) ? KERNEL_PLAYER : KERNEL_ANIM, scratch._9a);
+ kernel_synch(KERNEL_ANIM, scratch._a6, (scratch._9c == -1) ? KERNEL_PLAYER : KERNEL_ANIM, scratch._9c);
+
kernel_synch(KERNEL_ANIM, scratch._a4, KERNEL_PLAYER, 0);
digi_play_build(307, 'r', 1, 1);
scratch._aa = 10;
More information about the Scummvm-git-logs
mailing list