diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-17 11:18:14 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-17 11:18:14 -0500 |
| commit | 0b34cd0ee76db6885342f91db2abc7d821d013b7 (patch) | |
| tree | b343cce4297355191c142b5b864757f3490127ae /sigmod/Rules.cpp | |
| parent | 5cce8d2924ca759344263e94afd071f0fa999533 (diff) | |
| download | sigen-0b34cd0ee76db6885342f91db2abc7d821d013b7.tar.gz sigen-0b34cd0ee76db6885342f91db2abc7d821d013b7.tar.xz sigen-0b34cd0ee76db6885342f91db2abc7d821d013b7.zip | |
Added more tests for Rules and fixes for numBoxes and boxSize
Diffstat (limited to 'sigmod/Rules.cpp')
| -rw-r--r-- | sigmod/Rules.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sigmod/Rules.cpp b/sigmod/Rules.cpp index 9f9394a4..e8fa0d7b 100644 --- a/sigmod/Rules.cpp +++ b/sigmod/Rules.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2007-2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2007-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -224,13 +224,10 @@ CHECK_BEGIN(Rules, bool, pausedATB) return false; } CHECK_END() -CHECK(Rules, int, numBoxes) +CHECK_BOUNDS(Rules, int, numBoxes, 0, INT_MAX) CHECK_BEGIN(Rules, int, boxSize) if (m_numBoxes) - { TBOUNDS(boxSize, 1, INT_MAX); - return false; - } CHECK_END() CHECK_BOUNDS(Rules, int, maxParty, 1, INT_MAX) CHECK_BOUNDS(Rules, int, maxFight, 1, m_maxParty) |
