Skip to content

Commit

Permalink
CRUISE: Fix a couple of CppCheck warnings in Volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jun 6, 2014
1 parent 9aee739 commit 2eaa78b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions engines/cruise/volume.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2eaa78b

Please sign in to comment.