From c4988773f023c2334d864cff5e95d4798c160935 Mon Sep 17 00:00:00 2001
From: Sam Moore <matches@ucc.asn.au>
Date: Fri, 2 Mar 2012 21:20:19 +0800
Subject: [PATCH] Fixed bug with log files

I had added some extra log messages for testing the networking functions,
and forgot to remove them, hence replaying a logged file (with the -f option)
was failing.
---
 judge/manager/game.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/judge/manager/game.cpp b/judge/manager/game.cpp
index e87927d..ea7a7c9 100644
--- a/judge/manager/game.cpp
+++ b/judge/manager/game.cpp
@@ -43,7 +43,7 @@ Game::Game(const char * redPath, const char * bluePath, const bool enableGraphic
 			fprintf(stderr, "BLUE! (blue: \"%s\")\n", bluePath);
 		exit(EXIT_FAILURE);
 	}
-	logMessage("Game initialised.\n");
+//	logMessage("Game initialised.\n");
 }
 
 Game::Game(const char * fromFile, const bool enableGraphics, double newStallTime, const bool allowIllegal, FILE * newLog, const  Piece::Colour & newReveal, int newMaxTurns, bool newPrintBoard, double newTimeoutTime) : red(NULL), blue(NULL), turn(Piece::RED), theBoard(10,10), graphicsEnabled(enableGraphics), stallTime(newStallTime), allowIllegalMoves(allowIllegal), log(newLog), reveal(newReveal), turnCount(0), input(NULL), maxTurns(newMaxTurns), printBoard(newPrintBoard), timeoutTime(newTimeoutTime)
@@ -479,7 +479,7 @@ MovementResult Game::Play()
 	
 	
 
-	logMessage("Messaging red with \"START\"\n");
+//	logMessage("Messaging red with \"START\"\n");
 	red->Message("START");
 	
 
-- 
GitLab