ACCESS: Add missing _startup checks to palette cycling opcodes

This commit is contained in:
Paul Gilbert 2014-11-01 22:25:41 -04:00
parent f3063a13f0
commit c038452588
2 changed files with 5 additions and 3 deletions

View file

@ -449,8 +449,9 @@ void AmazonScripts::cmdHelp() {
error("TODO: more cmdHelp"); error("TODO: more cmdHelp");
} }
void AmazonScripts::cmdCycleBack() { void AmazonScripts::cmdCycleBack() {
_vm->_screen->cyclePaletteBackwards(); if (_vm->_startup == -1)
_vm->_screen->cyclePaletteBackwards();
} }
void AmazonScripts::cmdChapter() { void AmazonScripts::cmdChapter() {
int chapter = _data->readByte(); int chapter = _data->readByte();

View file

@ -522,7 +522,8 @@ void Scripts::cmdSetCycle() {
} }
void Scripts::cmdCycle() { void Scripts::cmdCycle() {
_vm->_screen->cyclePaletteForward(); if (_vm->_startup == -1)
_vm->_screen->cyclePaletteForward();
} }
void Scripts::cmdCharSpeak() { void Scripts::cmdCharSpeak() {