From 54d1126c58f0563ea7b3276bbeb5cf0c4bfd5a38 Mon Sep 17 00:00:00 2001 From: pankdm Date: Mon, 23 Sep 2013 19:44:03 +0000 Subject: [PATCH] Small fix in TestSuite "Update" should pass "dt" since the last update, not since the beginning the game. --- projects/mtg/src/TestSuiteAI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/mtg/src/TestSuiteAI.cpp b/projects/mtg/src/TestSuiteAI.cpp index 72c53ec1e..47237923b 100644 --- a/projects/mtg/src/TestSuiteAI.cpp +++ b/projects/mtg/src/TestSuiteAI.cpp @@ -762,7 +762,6 @@ void TestSuite::ThreadProc(void* inParam) if (instance) { string filename; - float counter = 1.0f; while(instance->mProcessing && (filename = instance->getNextFile()) != "") { TestSuiteGame theGame(instance, filename); @@ -775,7 +774,7 @@ void TestSuite::ThreadProc(void* inParam) theGame.initGame(); while(!theGame.observer->didWin()) - theGame.observer->Update(counter++); + theGame.observer->Update(1); /* if(theGame.observer->gameType() != GAME_TYPE_MOMIR) {