diff options
author | Filippos Karapetis | 2007-06-02 15:21:42 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-06-02 15:21:42 +0000 |
commit | 9896ce253e9eda4bb8bb612d269ef114541ec281 (patch) | |
tree | 69081f84d062400ffa536f0fa1e5dadf34725f7f /engines | |
parent | 475abaf9dc80b14c35cb287439dc0ec22f970ac6 (diff) | |
download | scummvm-rg350-9896ce253e9eda4bb8bb612d269ef114541ec281.tar.gz scummvm-rg350-9896ce253e9eda4bb8bb612d269ef114541ec281.tar.bz2 scummvm-rg350-9896ce253e9eda4bb8bb612d269ef114541ec281.zip |
Moved a sanity check before some relevant asserts
svn-id: r27054
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/interface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index f9f22161ec..e0ed80b074 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -534,13 +534,14 @@ bool Interface::processAscii(uint16 ascii) { } void Interface::setStatusText(const char *text, int statusColor) { - assert(text != NULL); - assert(strlen(text) < STATUS_TEXT_LEN); // Disable the status text in IHNM when the chapter is 8 if (_vm->getGameType() == GType_IHNM && _vm->_scene->currentChapterNumber() == 8) return; + assert(text != NULL); + assert(strlen(text) < STATUS_TEXT_LEN); + if (_vm->_render->getFlags() & (RF_PLACARD | RF_MAP)) return; |