diff options
author | Sven Hesse | 2007-02-12 14:37:27 +0000 |
---|---|---|
committer | Sven Hesse | 2007-02-12 14:37:27 +0000 |
commit | 15f52b96b80e02cd7d95f1942297016b05b56ee4 (patch) | |
tree | afb239bc8d959583a26cf2939cc3dd7d4f6c3c5d /engines/gob/draw_v2.cpp | |
parent | bd1a85582cb5412716c43f133c579a458bb4f933 (diff) | |
download | scummvm-rg350-15f52b96b80e02cd7d95f1942297016b05b56ee4.tar.gz scummvm-rg350-15f52b96b80e02cd7d95f1942297016b05b56ee4.tar.bz2 scummvm-rg350-15f52b96b80e02cd7d95f1942297016b05b56ee4.zip |
Changed language finding again
svn-id: r25525
Diffstat (limited to 'engines/gob/draw_v2.cpp')
-rw-r--r-- | engines/gob/draw_v2.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp index c703888e0d..49069c2861 100644 --- a/engines/gob/draw_v2.cpp +++ b/engines/gob/draw_v2.cpp @@ -79,6 +79,12 @@ void Draw_v2::printText(void) { if ((_vm->_game->_totTextData == 0) || (_vm->_game->_totTextData->dataPtr == 0)) return; + if (_vm->_global->_languageWanted != _vm->_global->_language) { + warning("Your game version doesn't support the requested language, " + "using the first one available (%d)", _vm->_global->_language); + _vm->_global->_languageWanted = _vm->_global->_language; + } + size = _vm->_game->_totTextData->items[index].size; dataPtr = _vm->_game->_totTextData->dataPtr + _vm->_game->_totTextData->items[index].offset; ptr = dataPtr; @@ -652,6 +658,12 @@ void Draw_v2::spriteOperation(int16 operation) { if ((_fontIndex >= 4) || (_fontToSprite[_fontIndex].sprite == -1)) { if (_fonts[_fontIndex]->extraData == 0) { if (((int8) _textToPrint[0]) == -1) { + if (_vm->_global->_languageWanted != _vm->_global->_language) { + warning("Your game version doesn't support the requested language, " + "using the first one available (%d)", + _vm->_global->_language); + _vm->_global->_languageWanted = _vm->_global->_language; + } dataBuf = _vm->_game->_totTextData->dataPtr + _textToPrint[1] + 1; len = *dataBuf++; for (i = 0; i < len; i++) { |