diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-09-06 20:09:56 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-09-06 20:09:56 -0400 |
commit | 4c2494e39c32321c132617373202747673105f1c (patch) | |
tree | 16ca350629df73f290a1e1d0109d53b19a62ed4b /sigmod | |
parent | a4561a460a98157d98a4a3ee74f2e55d45402d9f (diff) | |
download | sigen-4c2494e39c32321c132617373202747673105f1c.tar.gz sigen-4c2494e39c32321c132617373202747673105f1c.tar.xz sigen-4c2494e39c32321c132617373202747673105f1c.zip |
Allow for boxSize, numBoxes, and effort values to be unlimited
Diffstat (limited to 'sigmod')
-rw-r--r-- | sigmod/Rules.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sigmod/Rules.cpp b/sigmod/Rules.cpp index 5acf0dfc..a4ef157a 100644 --- a/sigmod/Rules.cpp +++ b/sigmod/Rules.cpp @@ -197,10 +197,10 @@ CHECK_BEGIN(Rules, bool, breedingAllowed) } CHECK_END() CHECK(Rules, bool, criticalDomains) -CHECK_BOUNDS(Rules, int, numBoxes, 0, INT_MAX) +CHECK_BOUNDS(Rules, int, numBoxes, -1, INT_MAX) CHECK_BEGIN(Rules, int, boxSize) if (m_numBoxes) - TBOUNDS(boxSize, 1, INT_MAX); + TBOUNDS(boxSize, 0, INT_MAX); CHECK_END() CHECK_BOUNDS(Rules, int, maxParty, 1, INT_MAX) CHECK_BOUNDS(Rules, int, maxFight, 1, m_maxParty) @@ -222,11 +222,11 @@ CHECK_BEGIN(Rules, bool, specialDVSplit) } CHECK_END() CHECK_BEGIN(Rules, int, maxTotalEV) - TBOUNDS(maxTotalEV, 0, INT_MAX); + TBOUNDS(maxTotalEV, -1, INT_MAX); CHECK_END() CHECK_BEGIN(Rules, int, maxEVPerStat) if (m_maxTotalEV) - TBOUNDS(maxEVPerStat, 1, m_maxTotalEV); + TBOUNDS(maxEVPerStat, 0, m_maxTotalEV); CHECK_END() Rules& Rules::operator=(const Rules& rhs) |