Skip to content

Commit

Permalink
SCUMM: Fix bug #6592 SCUMM: ZAK - Read Ticket is too fast to read.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirben committed Jun 9, 2015
1 parent 8c71bf0 commit dbe256b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions engines/scumm/scumm.cpp
Expand Up @@ -316,6 +316,7 @@ ScummEngine::ScummEngine(OSystem *syst, const DetectorResult &dr)
_NES_lastTalkingActor = 0;
_NES_talkColor = 0;
_keepText = false;
_msgCount = 0;
_costumeLoader = NULL;
_costumeRenderer = NULL;
_2byteFontPtr = 0;
Expand Down
1 change: 1 addition & 0 deletions engines/scumm/scumm.h
Expand Up @@ -1182,6 +1182,7 @@ class ScummEngine : public Engine {
byte _charsetBuffer[512];

bool _keepText;
byte _msgCount;

int _nextLeft, _nextTop;

Expand Down
7 changes: 7 additions & 0 deletions engines/scumm/string.cpp
Expand Up @@ -283,6 +283,7 @@ bool ScummEngine::handleNextCharsetCode(Actor *a, int *code) {
switch (c) {
case 1:
c = 13; // new line
_msgCount = _screenWidth;
endLoop = true;
break;
case 2:
Expand All @@ -293,6 +294,7 @@ bool ScummEngine::handleNextCharsetCode(Actor *a, int *code) {
case 3:
_haveMsg = (_game.version >= 7) ? 1 : 0xFF;
_keepText = false;
_msgCount = 0;
endLoop = true;
break;
case 8:
Expand Down Expand Up @@ -573,6 +575,9 @@ void ScummEngine::CHARSET_1() {
#endif
restoreCharsetBg();
}
_msgCount = 0;
} else if (_game.version <= 2) {
_talkDelay += _msgCount * _defaultTalkDelay;
}

if (_game.version > 3) {
Expand Down Expand Up @@ -600,6 +605,7 @@ void ScummEngine::CHARSET_1() {
// End of text reached, set _haveMsg accordingly
_haveMsg = (_game.version >= 7) ? 2 : 1;
_keepText = false;
_msgCount = 0;
break;
}

Expand Down Expand Up @@ -648,6 +654,7 @@ void ScummEngine::CHARSET_1() {
}
if (_game.version <= 3) {
_charset->printChar(c, false);
_msgCount += 1;
} else {
if (_game.features & GF_16BIT_COLOR) {
// HE games which use sprites for subtitles
Expand Down

0 comments on commit dbe256b

Please sign in to comment.