From 746a486e7afb79b55e5593898a9856ae03846805 Mon Sep 17 00:00:00 2001 From: xawotihs Date: Sat, 30 Nov 2013 23:39:29 +0100 Subject: [PATCH] Added some comments for the redo tests. --- projects/mtg/src/TestSuiteAI.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/mtg/src/TestSuiteAI.cpp b/projects/mtg/src/TestSuiteAI.cpp index 966e5ea7e..b3fe9281c 100644 --- a/projects/mtg/src/TestSuiteAI.cpp +++ b/projects/mtg/src/TestSuiteAI.cpp @@ -615,6 +615,7 @@ void TestSuite::ThreadProc(void* inParam) while(!theGame.observer->didWin()) theGame.observer->Update(counter++); + // rewind and redo thanks to the action logging stringstream stream; stream << (*theGame.observer); theGame.observer->load(stream.str(), false, 0, &theGame);