mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-28 22:23:43 +00:00
Only get speach position when speach is enabled.
This commit is contained in:
parent
d1d0dfe909
commit
414372292f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user