Changed the check for the status bar in IHNM to match the original, removed a relevant hack

svn-id: r26802
This commit is contained in:
Filippos Karapetis 2007-05-11 13:10:13 +00:00
parent 1880c8739b
commit ff7d48f582

View File

@ -536,8 +536,8 @@ 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 main panel is not shown (i.e. when the screen is full)
if (_vm->getGameType() == GType_IHNM && !(_panelMode == kPanelMain || _panelMode == kPanelMap))
// Disable the status text in IHNM when the chapter is 8
if (_vm->getGameType() == GType_IHNM && _vm->_scene->currentChapterNumber() == 8)
return;
if (_vm->_render->getFlags() & (RF_PLACARD | RF_MAP))
@ -1524,15 +1524,12 @@ void Interface::drawStatusBar() {
int stringWidth;
int color;
if (_panelMode == kPanelChapterSelection)
// Disable the status text in IHNM when the chapter is 8
if (_vm->getGameType() == GType_IHNM && _vm->_scene->currentChapterNumber() == 8)
return;
backBuffer = _vm->_gfx->getBackBuffer();
// Disable the status bar in IHNM when the main panel is not shown (i.e. when the screen is full)
if (_vm->getGameType() == GType_IHNM && !(_panelMode == kPanelMain || _panelMode == kPanelMap))
return;
// Erase background of status bar
rect.left = _vm->getDisplayInfo().statusXOffset;
rect.top = _vm->getDisplayInfo().statusYOffset;