From 1879151c227ecb9074117d2bd562db45ee7af507 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 1 Feb 2014 12:58:51 -0500 Subject: [PATCH] TSAGE: Fix for voice playback never calling it's end action when finished --- engines/tsage/ringworld2/ringworld2_logic.cpp | 5 +++++ engines/tsage/ringworld2/ringworld2_logic.h | 1 + 2 files changed, 6 insertions(+) diff --git a/engines/tsage/ringworld2/ringworld2_logic.cpp b/engines/tsage/ringworld2/ringworld2_logic.cpp index 39e398023d7..b97f63bbd3e 100644 --- a/engines/tsage/ringworld2/ringworld2_logic.cpp +++ b/engines/tsage/ringworld2/ringworld2_logic.cpp @@ -625,6 +625,11 @@ void SceneHandlerExt::process(Event &event) { SceneHandler::process(event); } +void SceneHandlerExt::dispatch() { + R2_GLOBALS._playStream.dispatch(); + SceneHandler::dispatch(); +} + void SceneHandlerExt::postLoad(int priorSceneBeforeLoad, int currentSceneBeforeLoad) { // Set up the shading maps used for showing the player in shadows setupPaletteMaps(); diff --git a/engines/tsage/ringworld2/ringworld2_logic.h b/engines/tsage/ringworld2/ringworld2_logic.h index c9695c921d0..101b0f53cdc 100644 --- a/engines/tsage/ringworld2/ringworld2_logic.h +++ b/engines/tsage/ringworld2/ringworld2_logic.h @@ -114,6 +114,7 @@ public: virtual void postInit(SceneObjectList *OwnerList = NULL); virtual void process(Event &event); virtual void postLoad(int priorSceneBeforeLoad, int currentSceneBeforeLoad); + virtual void dispatch(); void setupPaletteMaps(); };