From 4b0d0ecddac516521f563cad54bbc7b77f9c112b Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Fri, 15 Mar 2013 18:48:44 +0100 Subject: TOLTECS: Work around undefined subtitle behaviour at script loading It may be because of an underlying bug, but there is at least one case where a script is unloaded and replaced by another script while that script slot still has an active subtitle. This causes it to print random garbage for me, and may be causing crashes for others. I've discussed this patch with johndoe, and he was ok with it, so let's see how it works out. --- engines/toltecs/screen.h | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/toltecs/screen.h') diff --git a/engines/toltecs/screen.h b/engines/toltecs/screen.h index ee565e1882..52f412251e 100644 --- a/engines/toltecs/screen.h +++ b/engines/toltecs/screen.h @@ -183,6 +183,7 @@ public: void addTalkTextItemsToRenderQueue(); int16 getTalkTextDuration(); bool isTalkTextActive(int16 slotIndex); + void finishTalkTextItem(int16 slotIndex); void finishTalkTextItems(); void keepTalkTextItemsAlive(); -- cgit v1.2.3