fix output appearing in stdout without DEBUG defined

This commit is contained in:
jacob1 2012-12-16 11:38:12 -05:00
parent a85526bfac
commit 06f8f88374
2 changed files with 4 additions and 0 deletions

View File

@ -431,7 +431,9 @@ std::vector<std::string> Client::DirectorySearch(std::string directory, std::str
findFileHandle = _findfirst(fileMatch.c_str(), &currentFile);
if (findFileHandle == -1L)
{
#ifdef DEBUG
printf("Unable to open directory\n");
#endif
return std::vector<std::string>();
}
do

View File

@ -1097,7 +1097,9 @@ void GameSave::readPSv(char * data, int dataLength)
}
dataLength = i;
#ifdef DEBUG
std::cout << "Parsing " << dataLength << " bytes of data, version " << ver << std::endl;
#endif
if (dataLength < bw*bh)
throw ParseException(ParseException::Corrupt, "Save data corrupt (missing data)");