From 414372292f93c8c0261cc242db70863094c873ea Mon Sep 17 00:00:00 2001 From: Joel Teichroeb Date: Tue, 24 May 2011 21:07:55 -0700 Subject: [PATCH] Only get speach position when speach is enabled. --- engines/grim/actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/grim/actor.cpp b/engines/grim/actor.cpp index c9746c55172..0c3e3e34a03 100644 --- a/engines/grim/actor.cpp +++ b/engines/grim/actor.cpp @@ -1180,7 +1180,7 @@ void Actor::update() { // While getPosIn60HzTicks will return "-1" to indicate that the // sound is no longer playing, it is more appropriate to check first - if (g_imuse->getSoundStatus(_talkSoundName.c_str())) + if (g_grim->getSpeechMode() != GrimEngine::TextOnly && g_imuse->getSoundStatus(_talkSoundName.c_str())) posSound = g_imuse->getPosIn60HzTicks(_talkSoundName.c_str()); else posSound = -1;