CRUISE: Fix a couple of CppCheck warnings in Volume

This commit is contained in:
Strangerke 2014-06-06 07:12:01 +02:00
parent 9aee739a18
commit 2eaa78b54b

View File

@ -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);
}