aboutsummaryrefslogtreecommitdiff
path: root/src/shared/vmap/DebugCmdLogger.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-06 16:27:07 -0500
committermegamage <none@none>2009-05-06 16:27:07 -0500
commitec8367d2537b75d73ea15dab66866e1cbacf3396 (patch)
treeffe24986b0c241fe07f5f87bbf2cfa1ca2952173 /src/shared/vmap/DebugCmdLogger.cpp
parentb3de9cdff7581ae8e81313ba7db466987f593fd4 (diff)
Backed out changeset: 7c8912b7d5c6
--HG-- branch : trunk
Diffstat (limited to 'src/shared/vmap/DebugCmdLogger.cpp')
-rw-r--r--src/shared/vmap/DebugCmdLogger.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/shared/vmap/DebugCmdLogger.cpp b/src/shared/vmap/DebugCmdLogger.cpp
index 8a518a83b44..de656f4cfc5 100644
--- a/src/shared/vmap/DebugCmdLogger.cpp
+++ b/src/shared/vmap/DebugCmdLogger.cpp
@@ -20,12 +20,6 @@
#include "DebugCmdLogger.h"
-//#ifdef _DEBUG
-//#define DEB(x) x
-//#else
-#define DEB(x)
-//#endif
-
using namespace G3D;
namespace VMAP
@@ -103,25 +97,25 @@ namespace VMAP
bool CommandFileRW::getNewCommands(Array<Command>& pCmdArray)
{
bool result = false;
-DEB( FILE* f = fopen(iFileName.c_str(), "rb");)
-DEB( if(f))
+ FILE* f = fopen(iFileName.c_str(), "rb");
+ if(f)
{
Command cmd;
-DEB( if(fseek(f, iLastPos, SEEK_SET) == 0) { result = true; })
+ if(fseek(f, iLastPos, SEEK_SET) == 0) { result = true; }
while(result)
{
-DEB( if(fread(&cmd, sizeof(Command), 1, f) != 1))
+ if(fread(&cmd, sizeof(Command), 1, f) != 1)
{
result = false;
}
-DEB( iLastPos = ftell(f);)
+ iLastPos = ftell(f);
if(cmd.getType() == STOP)
{
break;
}
pCmdArray.append(cmd);
}
-DEB( fclose(f);)
+ fclose(f);
}
if(result)
{