WP-108: Phantom’s fountain close-up, played (Gen 1)

Status: ✅ Done (2026-11-28). Fork PR barefootbetters/scummvm#31 merged on 2026-11-28 (merge commit 50e43fc735). Phase: 5 (a room checked only by calling its class, played) Depends on: WP-075 ✅ (the port of the maze interior), WP-103 ✅ (the maze centre, played) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-108-2026-11-28. Required: the packet modifies engines/terraglyph/**. Targets generation(s): Gen 1, Phantom of the Knight only. Estimated effort: An hour or two


Goal

Play the fountain close-up (ROOM_P44_Fountain_Closeup, class 0x429740, vtable 0x45F304) through the engine’s mouse and tick, against the decompile, and fix what differs. You reach it from the maze centre. A piranha guards the tokens, and the burger feeds it.

WP-075 ported the room. Its check called the class’s event() directly, which skips the engine’s hit test, cursor and click path. That is the gap the search of the packets found in WP-099 to WP-103’s rooms, and the maze centre (WP-103) was the last room on that search’s list. The fountain is next to the centre and has the same gap.

What the decompile says

The fork’s class already does all of this, with the same animation arguments (read from the tick’s bytes, since the decompile drops the arguments of the +0x24 calls). Two places where the fork looks thinner are covered elsewhere:

The tick clock reset (0x437540) is one the fork doesn’t keep anywhere.

Scope

In scope: fork maze_interior_check.cpp, a new section that plays the room; this packet, its pre-flight, a pointer in WP-075 and the index row.

Out of scope: the well in the maze (ROOM_P22_Well_In_Maze), whose check also calls its class directly. It’s the next room.

Exit criteria

  1. Expectations first. The new lines were written from the decompile before the run.
  2. Self-test. The new lines match those expectations, after the one wrong expectation was corrected (below). The rest matches the WP-105 run except for the per-run random keys. No new warnings.
  3. Live. A scripted run plays a line, the lunge, and the burger fed to the piranha through to the centre.
  4. Process. The fork PR against scooby-engine is open (merged later the same day).

Result

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

Deliverables