summaryrefslogtreecommitdiff
path: root/src/client/GameSave.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-12-16 16:38:12 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-12-16 16:38:12 (GMT)
commit00190b4aabad65531ee0e859c3e4f358841238f6 (patch)
treebe5cd2b653a1e009177adea685ea446b74c45458 /src/client/GameSave.cpp
parent735b2b659f2baf824d104cb5e58f64b4c2587817 (diff)
downloadpowder-00190b4aabad65531ee0e859c3e4f358841238f6.zip
powder-00190b4aabad65531ee0e859c3e4f358841238f6.tar.gz
Don't print PSV debug information when compiled for release
Diffstat (limited to 'src/client/GameSave.cpp')
-rw-r--r--src/client/GameSave.cpp2
1 files changed, 2 insertions, 0 deletions
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)");