Fixed displayMessage script method to use the new Hotspot::showMessage

svn-id: r23691
This commit is contained in:
Paul Gilbert 2006-08-07 13:19:10 +00:00
parent e911afb525
commit c0e600e0fa

View File

@ -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