mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
Moved a sanity check before some relevant asserts
svn-id: r27054
This commit is contained in:
parent
475abaf9dc
commit
9896ce253e
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user