WP-119: Phantom’s room of doors, played (Gen 1)

Status: ✅ Done (2026-11-29). Fork PR barefootbetters/scummvm#43 merged on 2026-11-29 (merge commit dc8a9b3a57). Phase: 5 (rooms played) Depends on: WP-061 ✅ (the port of the room and its Jester), WP-116 ✅ (handleEvent()) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-119-2026-11-29. Required: the packet modifies engines/terraglyph/**. Targets generation(s): Gen 1, Phantom of the Knight only. Estimated effort: Two hours Numbering: claimed first as WP-118. Another session had reserved WP-118 for the TV D-pad GUI focus packet about 30 seconds earlier (docs PR #300), so this packet is WP-119. The fork branch keeps the name wp-118-room-of-doors, and its first commit’s subject says WP-118.


Goal

Play the room of doors (ROOM_P11_Room_Of_Doors, 0x415720, vtable 0x45EA9C) and its Jester through the engine’s own event path, against the decompile, and fix what differs.

WP-061 ported the room. Its check took the ways out through the room’s handler and clicked the Jester through the room class’s click(), never through the mouse. It’s the second of the 11 checks that click through a class or script function, after the drawbridge (WP-117).

What the decompile says

What differed

One thing, in the room class. The fork started 130B_ blocking, so input stayed held and the cursor hidden through it. WP-061 had read the scene as holding input and missed the two lines after it. It’s now a scene that doesn’t block (doors_rooms.cpp), which has the same effect.

Everything else matches: the claim, the ways out, the locked door, the hovers and the Jester.

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 check slips corrected (below). The rest matches the WP-117 run except for:
    • the per-run random keys;
    • WP-061’s locked line, now held 0;
    • WP-117’s drawbridge points line, which moves with the flags’ random starting step.

    No new warnings.

  3. Live. Scripted runs show the locked door, 130B_ with the cursor drawn and a hotspot answering during it, a way out, and the Jester’s introduction.
  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