Moved a sanity check before some relevant asserts

svn-id: r27054
This commit is contained in:
Filippos Karapetis 2007-06-02 15:21:42 +00:00
parent 475abaf9dc
commit 9896ce253e

View File

@ -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;