mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
MOHAWK: Disable zip mode in Myst demo
This commit is contained in:
parent
acffd12d07
commit
b15ad58f11
@ -113,6 +113,10 @@ void MystOptionsDialog::open() {
|
||||
_showMapButton->setEnabled(_vm->_scriptParser &&
|
||||
_vm->_scriptParser->getMap());
|
||||
|
||||
// Zip mode is disabled in the demo
|
||||
if (_vm->getFeatures() & GF_DEMO)
|
||||
_zipModeCheckbox->setEnabled(false);
|
||||
|
||||
_zipModeCheckbox->setState(_vm->_gameState->_globals.zipMode);
|
||||
_transitionsCheckbox->setState(_vm->_gameState->_globals.transitions);
|
||||
}
|
||||
|
@ -320,6 +320,10 @@ void MystGameState::deleteSave(const Common::String &saveName) {
|
||||
void MystGameState::addZipDest(uint16 stack, uint16 view) {
|
||||
ZipDests *zipDests = 0;
|
||||
|
||||
// The demo has no zip dest storage
|
||||
if (_vm->getFeatures() & GF_DEMO)
|
||||
return;
|
||||
|
||||
// Select stack
|
||||
switch (stack) {
|
||||
case kChannelwoodStack:
|
||||
@ -362,6 +366,10 @@ bool MystGameState::isReachableZipDest(uint16 stack, uint16 view) {
|
||||
if (!_globals.zipMode)
|
||||
return false;
|
||||
|
||||
// The demo has no zip dest storage
|
||||
if (_vm->getFeatures() & GF_DEMO)
|
||||
return false;
|
||||
|
||||
// Select stack
|
||||
ZipDests *zipDests;
|
||||
switch (stack) {
|
||||
|
Loading…
Reference in New Issue
Block a user