[Scummvm-git-logs] scummvm master -> 03f03637c4e7836f8dc5f9ed97cc7534c6fec03e

Strangerke noreply at scummvm.org
Thu Jan 29 13:07:40 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:
03f03637c4 M4: BURGER: Fix original but mentioned in #14997 (Puz Dispenser duplicated)


Commit: 03f03637c4e7836f8dc5f9ed97cc7534c6fec03e
    https://github.com/scummvm/scummvm/commit/03f03637c4e7836f8dc5f9ed97cc7534c6fec03e
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2026-01-29T14:06:57+01:00

Commit Message:
M4: BURGER: Fix original but mentioned in #14997 (Puz Dispenser duplicated)

Changed paths:
    engines/m4/burger/rooms/section1/room176.cpp


diff --git a/engines/m4/burger/rooms/section1/room176.cpp b/engines/m4/burger/rooms/section1/room176.cpp
index b1e31bfb131..49e950f7bf0 100644
--- a/engines/m4/burger/rooms/section1/room176.cpp
+++ b/engines/m4/burger/rooms/section1/room176.cpp
@@ -69,11 +69,18 @@ void Room176::init() {
 		break;
 	}
 
-	if (inv_player_has("PUZ DISPENSER") || inv_player_has("BROKEN PUZ DISPENSER")) {
-		hotspot_set_active("PUZ DISPENSER ", false);
-	} else {
+	/* Original code to initialize the presence of the Puz Dispenser.
+	 * Replaced by the code hereunder in order to fix an original duplication bug (after you give it to Odie) */
+	// if (inv_player_has("PUZ DISPENSER") || inv_player_has("BROKEN PUZ DISPENSER")) {
+	//	hotspot_set_active("PUZ DISPENSER ", false);
+	// } else {
+	//	_puzDispenser = series_show("176pez", 0x500);
+	// }
+
+	if (inv_object_in_scene("BROKEN PUZ DISPENSER", 176))
 		_puzDispenser = series_show("176pez", 0x500);
-	}
+	else
+		hotspot_set_active("PUZ DISPENSER ", false);
 }
 
 void Room176::daemon() {




More information about the Scummvm-git-logs mailing list