From 06f8f88374a1b9e288da30d754ba4bf02768d863 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 16 Dec 2012 11:38:12 -0500 Subject: fix output appearing in stdout without DEBUG defined diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 326bb05..4ec929c 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -431,7 +431,9 @@ std::vector Client::DirectorySearch(std::string directory, std::str findFileHandle = _findfirst(fileMatch.c_str(), ¤tFile); if (findFileHandle == -1L) { +#ifdef DEBUG printf("Unable to open directory\n"); +#endif return std::vector(); } do diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index 2e1a880..fbb9829 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -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)"); -- cgit v0.9.2-21-gd62e