mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 23:01:58 +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
|
// While getPosIn60HzTicks will return "-1" to indicate that the
|
||||||
// sound is no longer playing, it is more appropriate to check first
|
// 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());
|
posSound = g_imuse->getPosIn60HzTicks(_talkSoundName.c_str());
|
||||||
else
|
else
|
||||||
posSound = -1;
|
posSound = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user