Skip to content

Commit

Permalink
SCI: Only skip text in room 100 in the SQ6 demo
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Jul 16, 2012
1 parent 59ea918 commit 49c76c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/sci/engine/kgraphics32.cpp
Expand Up @@ -173,9 +173,9 @@ reg_t kCreateTextBitmap(EngineState *s, int argc, reg_t *argv) {
debugC(kDebugLevelStrings, "%s", text.c_str());
uint16 maxWidth = argv[1].toUint16(); // nsRight - nsLeft + 1
uint16 maxHeight = argv[2].toUint16(); // nsBottom - nsTop + 1
// These values can be larger than the screen in the SQ6 demo
// TODO: Find out why. For now, don't show any text in the SQ6 demo.
if (g_sci->getGameId() == GID_SQ6 && g_sci->isDemo())
// These values can be larger than the screen in the SQ6 demo, room 100
// TODO: Find out why. For now, don't show any text in that room.
if (g_sci->getGameId() == GID_SQ6 && g_sci->isDemo() && s->currentRoomNumber() == 100)
return NULL_REG;
return g_sci->_gfxText32->createTextBitmap(object, maxWidth, maxHeight);
}
Expand Down

0 comments on commit 49c76c8

Please sign in to comment.