diff options
author | Einar Johan Trøan Sømåen | 2013-04-17 19:34:09 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-17 19:42:05 +0200 |
commit | cbae39ab8773908fd5945c4f93468148fb5d76ea (patch) | |
tree | 941cb71eaa41412ca2034729dbaa44ab1ced4c2e /engines/wintermute/ad/ad_object.cpp | |
parent | 75443da53f053365e18f2e66f7a10ce0d3c66707 (diff) | |
download | scummvm-rg350-cbae39ab8773908fd5945c4f93468148fb5d76ea.tar.gz scummvm-rg350-cbae39ab8773908fd5945c4f93468148fb5d76ea.tar.bz2 scummvm-rg350-cbae39ab8773908fd5945c4f93468148fb5d76ea.zip |
WINTERMUTE: Move settings from BaseGame to separate struct.
Diffstat (limited to 'engines/wintermute/ad/ad_object.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_object.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/wintermute/ad/ad_object.cpp b/engines/wintermute/ad/ad_object.cpp index a41ed9fbc3..f2cf90a075 100644 --- a/engines/wintermute/ad/ad_object.cpp +++ b/engines/wintermute/ad/ad_object.cpp @@ -38,7 +38,6 @@ #include "engines/wintermute/base/base_game.h" #include "engines/wintermute/base/base_frame.h" #include "engines/wintermute/base/base_sprite.h" -#include "engines/wintermute/base/base_string_table.h" #include "engines/wintermute/base/base_sub_frame.h" #include "engines/wintermute/base/base_surface_storage.h" #include "engines/wintermute/base/font/base_font.h" @@ -901,7 +900,7 @@ void AdObject::talk(const char *text, const char *sound, uint32 duration, const _sentence->_sound = nullptr; _sentence->setText(text); - _gameRef->_stringTable->expand(&_sentence->_text); + _gameRef->expandStringByStringTable(&_sentence->_text); _sentence->setStances(stances); _sentence->_duration = duration; _sentence->_align = Align; @@ -913,7 +912,7 @@ void AdObject::talk(const char *text, const char *sound, uint32 duration, const // try to locate speech file automatically bool deleteSound = false; if (!sound) { - char *key = _gameRef->_stringTable->getKey(text); + char *key = _gameRef->getKeyFromStringTable(text); if (key) { sound = ((AdGame *)_gameRef)->findSpeechFile(key); delete[] key; |