From bd46ea29a654bb066ef6e0742d5c56f1e8e56c68 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 14 Aug 2008 08:04:54 +0000 Subject: [PATCH] standalone server fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2319 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/tools.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/src/tools.cpp b/source/src/tools.cpp index b27c4fc1..a41b14b2 100644 --- a/source/src/tools.cpp +++ b/source/src/tools.cpp @@ -140,7 +140,9 @@ const char *findfile(const char *filename, const char *mode) FILE *openfile(const char *filename, const char *mode) { const char *found = findfile(filename, mode); +#ifndef STANDALONE if(mode && mode[0]=='w' || mode[0]=='a') conoutf("writing to file: %s", found); +#endif if(!found) return NULL; return fopen(found, mode); } @@ -148,7 +150,9 @@ FILE *openfile(const char *filename, const char *mode) gzFile opengzfile(const char *filename, const char *mode) { const char *found = findfile(filename, mode); +#ifndef STANDALONE if(mode && mode[0]=='w' || mode[0]=='a') conoutf("writing to file: %s", found); +#endif if(!found) return NULL; return gzopen(found, mode); }