aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorStrangerke2014-06-06 07:12:01 +0200
committerStrangerke2014-06-06 07:12:54 +0200
commit2eaa78b54b535a3d1e95b2bc8c3bb6c13315e3f4 (patch)
treee09a7d5778de83b4db168c2932f64fde887fa2e0 /engines/cruise
parent9aee739a18048b5395b04c005e5aaf6a2515ff66 (diff)
downloadscummvm-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.cpp13
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);
}