diff options
| author | jacob1 <jfu614@gmail.com> | 2012-12-16 16:38:12 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2012-12-16 16:38:12 (GMT) |
| commit | 06f8f88374a1b9e288da30d754ba4bf02768d863 (patch) | |
| tree | fbe46aa7b53660b6c399728f1adc1504b188dc98 /src | |
| parent | a85526bfac04f033337edcd31aa53e8e33554ec1 (diff) | |
| download | powder-06f8f88374a1b9e288da30d754ba4bf02768d863.zip powder-06f8f88374a1b9e288da30d754ba4bf02768d863.tar.gz | |
fix output appearing in stdout without DEBUG defined
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/Client.cpp | 2 | ||||
| -rw-r--r-- | src/client/GameSave.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
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<std::string> 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<std::string>(); } 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)"); |
