diff options
author | Strangerke | 2014-06-06 07:12:01 +0200 |
---|---|---|
committer | Strangerke | 2014-06-06 07:12:54 +0200 |
commit | 2eaa78b54b535a3d1e95b2bc8c3bb6c13315e3f4 (patch) | |
tree | e09a7d5778de83b4db168c2932f64fde887fa2e0 /engines/cruise | |
parent | 9aee739a18048b5395b04c005e5aaf6a2515ff66 (diff) | |
download | scummvm-rg350-2eaa78b54b535a3d1e95b2bc8c3bb6c13315e3f4.tar.gz scummvm-rg350-2eaa78b54b535a3d1e95b2bc8c3bb6c13315e3f4.tar.bz2 scummvm-rg350-2eaa78b54b535a3d1e95b2bc8c3bb6c13315e3f4.zip |
CRUISE: Fix a couple of CppCheck warnings in Volume
Diffstat (limited to 'engines/cruise')
-rw-r--r-- | engines/cruise/volume.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/cruise/volume.cpp b/engines/cruise/volume.cpp index 3f7a133d9e..99d86e48bb 100644 --- a/engines/cruise/volume.cpp +++ b/engines/cruise/volume.cpp @@ -202,24 +202,25 @@ int16 findFileInList(char *fileName) { void askDisk(int16 discNumber) { char fileName[256]; char string[256]; - char messageDrawn = 0; if (discNumber != -1) { currentDiskNumber = discNumber; } - // skip drive selection stuff sprintf(fileName, "VOL.%d", currentDiskNumber); - sprintf(string, "INSERER LE DISQUE %d EN ", currentDiskNumber); - //while (Common::File::exists((const char*)fileName)) - { +#if 0 // skip drive selection stuff + bool messageDrawn = false; + while (Common::File::exists((const char*)fileName)) { if (!messageDrawn) { drawMsgString(string); - messageDrawn = 1; + messageDrawn = true; } } +#else + drawMsgString(string); +#endif changeCursor(currentCursor); } |