Erwan
- fix for issue 558 (compilation issues in release mode on most platforms)
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
#ifndef _TESTSUITE_AI_H_
|
#ifndef _TESTSUITE_AI_H_
|
||||||
#define _TESTSUITE_AI_H_
|
#define _TESTSUITE_AI_H_
|
||||||
|
|
||||||
|
#ifdef TESTSUITE
|
||||||
|
|
||||||
#define MAX_TESTSUITE_ACTIONS 100
|
#define MAX_TESTSUITE_ACTIONS 100
|
||||||
#define MAX_TESTUITE_CARDS 100
|
#define MAX_TESTUITE_CARDS 100
|
||||||
|
|
||||||
@@ -97,4 +99,5 @@ class TestSuiteAI:public AIPlayerBaka{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
using std::string;
|
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.
|
// 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 will be responsible for managing its own deck state.
|
||||||
TestSuiteAI::TestSuiteAI(TestSuite * _suite, int playerId) :
|
TestSuiteAI::TestSuiteAI(TestSuite * _suite, int playerId) :
|
||||||
@@ -761,3 +763,4 @@ void TestSuite::pregameTests()
|
|||||||
if (!sb.unitTest()) nbFailed++;
|
if (!sb.unitTest()) nbFailed++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user