WP-117: Phantom’s drawbridge, played (Gen 1)

Status: ✅ Done (2026-11-29). Fork PR barefootbetters/scummvm#42 merged on 2026-11-29 (merge commit 8868fed861). Phase: 5 (rooms played) Depends on: WP-057 ✅ (the port of the room), WP-116 ✅ (handleEvent()) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-117-2026-11-29. Required: the packet modifies engines/terraglyph/**. Targets generation(s): Gen 1, Phantom of the Knight only. Estimated effort: Two hours


Goal

Play the drawbridge (ROOM_P01_Drawbridge, 0x426730, vtable 0x45F214) through the engine’s own event path, against the decompile, and fix what differs.

WP-057 ported the room. Its check clicked the flags through the room class’s click(), never through the mouse. It’s the first of the 11 checks that click through a class or script function.

What the decompile says

What differed

Nothing. The room class matches the decompile, and nothing in the engine needed a change. The flag’s click is read on the press, where the original reads it on the release (WP-057 lists this). A press and release on one point plays the same.

Scope

In scope:

Exit criteria

  1. Expectations first. The new lines were written from the decompile before the run.
  2. Self-test. The new lines match the decompile, with the expectation I got wrong corrected (below). The rest matches the WP-116 run except for the per-run random keys. No new warnings.
  3. Live. Scripted runs solve the puzzle with a click, meet the no-snack line at the way out, and leave by it for the town once a snack is given.
  4. Process. The fork PR against scooby-engine is open (merged on 2026-11-29).

Result

Evidence labels: log (a self-test’s debug log), live (session) (a scripted run this session drove and read, with screenshots).

Found on the way

Deliverables