Quick patch for a Zak script bug.

svn-id: r3613
This commit is contained in:
James Brown 2002-02-20 01:56:41 +00:00
parent 495be47007
commit f0b89789eb
2 changed files with 7 additions and 1 deletions

View File

@ -2268,7 +2268,10 @@ void Scumm::o5_wait() {
if (derefActorSafe(getVarOrDirectByte(0x80), "o5_wait")->moving)
break;
return;
case 2: /* wait for message */
case 2: /* wait for message */
if ((_currentRoom == 0) && (_gameId == GID_ZAK256)) // Bypass Zak256 script hang
return;
if (_vars[VAR_HAVE_MSG])
break;
return;

View File

@ -234,6 +234,9 @@ void Scumm::scummMain(int argc, char **argv) {
_vars[VAR_VERSION] = 21;
#endif
_vars[VAR_DEBUGMODE] = _debugMode;
_haveMsg = 0xFF;
_vars[VAR_HAVE_MSG] = 0xFF;
if (_gameId==GID_MONKEY) {
_vars[74] = 1225;