diff options
author | Torbjörn Andersson | 2006-06-20 18:08:03 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-06-20 18:08:03 +0000 |
commit | 1569d5fadc511780cd24bd835fc8983a76a714ba (patch) | |
tree | f2696fa56025c7efab6b5d2b7c288cc1ee9aafe3 /engines/sword1/control.cpp | |
parent | a7908a01bf75254c4c430457cf6647e68d8aa1c1 (diff) | |
download | scummvm-rg350-1569d5fadc511780cd24bd835fc8983a76a714ba.tar.gz scummvm-rg350-1569d5fadc511780cd24bd835fc8983a76a714ba.tar.bz2 scummvm-rg350-1569d5fadc511780cd24bd835fc8983a76a714ba.zip |
Cleanup.
svn-id: r23194
Diffstat (limited to 'engines/sword1/control.cpp')
-rw-r--r-- | engines/sword1/control.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp index c5cb0ec4cd..b8d89ab3d2 100644 --- a/engines/sword1/control.cpp +++ b/engines/sword1/control.cpp @@ -193,7 +193,6 @@ void Control::askForCd(void) { _system->setPalette(palOut, 0, 256); free(palOut); - Common::File test; char fName[10]; uint8 textA[50]; sprintf(fName, "cd%d.id", SwordEngine::_systemVars.currentCD); @@ -209,15 +208,13 @@ void Control::askForCd(void) { } delay(300); if (_keyPressed) { - test.open(fName); - if (!test.isOpen()) { + if (!Common::File::exists(fName)) { memset(_screenBuf, 0, 640 * 480); renderText(_lStrings[STR_INCORRECT_CD], 320, 230, TEXT_CENTER); _system->copyRectToScreen(_screenBuf, 640, 0, 0, 640, 480); delay(2000); refreshText = true; } else { - test.close(); notAccepted = false; } } |