summaryrefslogtreecommitdiffstats
path: root/sigmod/Rules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/Rules.cpp')
-rw-r--r--sigmod/Rules.cpp7
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)