Skip to content

Commit

Permalink
ZVISION: Turn off subtitles, if requested
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Dec 26, 2014
1 parent 85142cd commit 19ce38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/zvision/graphics/render_manager.cpp
Expand Up @@ -737,7 +737,7 @@ void RenderManager::processSubs(uint16 deltatime) {
}
}

if (redraw) {
if (redraw && _engine->getScriptManager()->getStateValue(StateKey_Subtitles) == 1) {
_subtitleSurface.fillRect(Common::Rect(_subtitleSurface.w, _subtitleSurface.h), 0);

for (SubtitleMap::iterator it = _subsList.begin(); it != _subsList.end(); it++) {
Expand Down

2 comments on commit 19ce38d

@Marisa-Chan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will silence all system messages, not only subtitles. I think is better to add this check into:
MusicNode::MusicNode
SyncSoundNode::SyncSoundNode
ActionStreamVideo::execute

and simple don't load subs

@bluegr
Copy link
Member Author

@bluegr bluegr commented on 19ce38d Dec 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Fixed

Please sign in to comment.