diff options
author | Travis Howell | 2003-08-19 04:34:41 +0000 |
---|---|---|
committer | Travis Howell | 2003-08-19 04:34:41 +0000 |
commit | 7771433b20032436333d376aa75e63ca15fe15b6 (patch) | |
tree | ee5480b654b7f325d96262bff658e9fd5c379496 | |
parent | 2dd4c408680d128a61ba6c0919abc3e0c4ee4b66 (diff) | |
download | scummvm-rg350-7771433b20032436333d376aa75e63ca15fe15b6.tar.gz scummvm-rg350-7771433b20032436333d376aa75e63ca15fe15b6.tar.bz2 scummvm-rg350-7771433b20032436333d376aa75e63ca15fe15b6.zip |
Fix for v1 maniac demo mode not setting text color before displaying text
svn-id: r9776
-rw-r--r-- | scumm/script_v2.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index fd2128b3b8..486444b291 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -416,8 +416,13 @@ void Scumm_v2::decodeParseString() { _string[textSlot].overhead = false; // V1 Mansion Mansion uses static color table for subtitles - if (((_gameId == GID_MANIAC) && (_version == 1)) && _actorToPrintStrFor != 0xFF) - _string[textSlot].color = v1_mm_actor_speech_color[_actorToPrintStrFor]; + if ((_gameId == GID_MANIAC) && (_version == 1)) { + // Demo mode doesn't set subtitle color before display first subtitle. + if (_demo_mode && _actorToPrintStrFor == 0xFF) + _string[textSlot].color = 1; + else if (_actorToPrintStrFor != 0xFF) + _string[textSlot].color = v1_mm_actor_speech_color[_actorToPrintStrFor]; + } _messagePtr = buffer; switch (textSlot) { |