diff options
Diffstat (limited to 'engines/teenagent/teenagent.cpp')
-rw-r--r-- | engines/teenagent/teenagent.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index b8a4c059ed..17242d677e 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -377,6 +377,7 @@ void TeenAgentEngine::displayCredits(uint16 addr) { const byte *src = Resources::instance()->dseg.ptr(addr); event.orientation = *src++; event.color = *src++; + event.lan = 8; event.dst.y = *src; while (true) { @@ -393,6 +394,18 @@ void TeenAgentEngine::displayCredits(uint16 addr) { scene->push(event); } +void TeenAgentEngine::displayCutsceneMessage(uint16 addr, uint16 position) { + SceneEvent event(SceneEvent::kCreditsMessage); + + event.message = parseMessage(addr); + event.dst.x = position % 320; + event.dst.y = position / 320; + event.lan = 7; + + scene->push(event); +} + + void TeenAgentEngine::moveTo(const Common::Point &dst, byte o, bool warp) { moveTo(dst.x, dst.y, o, warp); } |