From: Sam Moore Date: Fri, 2 Mar 2012 13:20:19 +0000 (+0800) Subject: Fixed bug with log files X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=commitdiff_plain;h=c4988773f023c2334d864cff5e95d4798c160935 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. --- 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");