Only get speach position when speach is enabled.

This commit is contained in:
Joel Teichroeb 2011-05-24 21:07:55 -07:00
parent d1d0dfe909
commit 414372292f

View File

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