From 19fe04b8827917af6329da7635bec5d09e684220 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew@gmail.com" Date: Mon, 13 Dec 2010 13:16:01 +0000 Subject: [PATCH] Erwan - fix for issue 558 (compilation issues in release mode on most platforms) --- projects/mtg/include/TestSuiteAI.h | 3 +++ projects/mtg/src/TestSuiteAI.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/projects/mtg/include/TestSuiteAI.h b/projects/mtg/include/TestSuiteAI.h index 24f87c0a3..ad8ee8d36 100644 --- a/projects/mtg/include/TestSuiteAI.h +++ b/projects/mtg/include/TestSuiteAI.h @@ -1,6 +1,8 @@ #ifndef _TESTSUITE_AI_H_ #define _TESTSUITE_AI_H_ +#ifdef TESTSUITE + #define MAX_TESTSUITE_ACTIONS 100 #define MAX_TESTUITE_CARDS 100 @@ -98,3 +100,4 @@ class TestSuiteAI:public AIPlayerBaka{ #endif +#endif \ No newline at end of file diff --git a/projects/mtg/src/TestSuiteAI.cpp b/projects/mtg/src/TestSuiteAI.cpp index d774fb0fd..b5c9753a4 100644 --- a/projects/mtg/src/TestSuiteAI.cpp +++ b/projects/mtg/src/TestSuiteAI.cpp @@ -11,6 +11,8 @@ using std::string; +#ifdef TESTSUITE + // NULL is sent in place of a MTGDeck since there is no way to create a MTGDeck without a proper deck file. // TestSuiteAI will be responsible for managing its own deck state. TestSuiteAI::TestSuiteAI(TestSuite * _suite, int playerId) : @@ -761,3 +763,4 @@ void TestSuite::pregameTests() if (!sb.unitTest()) nbFailed++; } } +#endif \ No newline at end of file