diff options
-rw-r--r-- | scumm/scumm.h | 1 | ||||
-rw-r--r-- | scumm/scummvm.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/scumm/scumm.h b/scumm/scumm.h index d034ad6789..6b7298b344 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -957,7 +957,6 @@ public: char transText[200]; bool checkFixedDisk(); - int _cdrom; #if defined(SCUMM_LITTLE_ENDIAN) uint32 fileReadDword() { return _fileHandle.readDwordLE(); } diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index a218ddeb43..0d3b2898c7 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -87,7 +87,6 @@ Scumm::Scumm (GameDetector *detector, OSystem *syst) _features = detector->_features; _soundCardType = detector->_soundCardType; _noSubtitles = detector->_noSubtitles; - _cdrom = detector->_cdrom; _defaultTalkDelay = detector->_talkSpeed; _use_adlib = detector->_use_adlib; @@ -117,7 +116,8 @@ Scumm::Scumm (GameDetector *detector, OSystem *syst) /* Initialize backend */ syst->init_size(_realWidth, _realHeight); prop.cd_num = detector->_cdrom; - syst->property(OSystem::PROP_OPEN_CD, &prop); + if (prop.cd_num >= 0) + syst->property(OSystem::PROP_OPEN_CD, &prop); /* Bind the mixer to the system => mixer will be invoked * automatically when samples need to be generated */ |