From c0e600e0fad450dd0b615a33f24b48f10cf32ea3 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 7 Aug 2006 13:19:10 +0000 Subject: [PATCH] Fixed displayMessage script method to use the new Hotspot::showMessage svn-id: r23691 --- engines/lure/scripts.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index 5d865c890b1..979542f89cc 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -336,7 +336,9 @@ void Script::doorOpen(uint16 hotspotId, uint16 v2, uint16 v3) { // Lookup the given message Id for the specified character and display in a dialog void Script::displayMessage(uint16 messageId, uint16 characterId, uint16 unknownVal) { - Dialog::showMessage(messageId, characterId); + Hotspot *hotspot = Resources::getReference().getActiveHotspot(characterId); + if (hotspot != NULL) + hotspot->showMessage(messageId); } // Creates a new dispatch action with the given support data entry