Gob3CD - Move subtitle check to initialization

svn-id: r48167
This commit is contained in:
Arnaud Boutonné 2010-03-06 09:37:03 +00:00
parent e869b5c7e6
commit e011df1f68
2 changed files with 3 additions and 1 deletions

View File

@ -221,7 +221,7 @@ void Draw_v2::printTotText(int16 id) {
bool isSubtitle = (ptr[1] & 0x80) != 0;
if (isSubtitle && !_vm->_global->_doSubtitles && ((_vm->getGameType() != kGameTypeGob3) || !_vm->isCD())) {
if (isSubtitle && !_vm->_global->_doSubtitles) {
delete textItem;
return;
}

View File

@ -68,6 +68,8 @@ void Init_v2::initVideo() {
if (_vm->_global->_videoMode != 0)
_vm->_video->initSurfDesc(_vm->_global->_videoMode, _vm->_video->_surfWidth,
_vm->_video->_surfHeight, PRIMARY_SURFACE);
if ((_vm->getGameType() == kGameTypeGob3) && _vm->isCD())
_vm->_global->_doSubtitles = true;
}
} // End of namespace Gob