summaryrefslogtreecommitdiffstats
path: root/sigmod/Map.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-25 07:53:09 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-25 07:53:09 -0500
commitf3b3f21d3ba0fd48bc265684817cb38a70adf84b (patch)
treeccffe66f71e3ee15166080cda2aca7d842f547a2 /sigmod/Map.cpp
parente88f1843d61fd0d4c02fa85c3444c786f8c8fd8d (diff)
Bounds errors are verbose now and some unchecked conditions fixed as well
Diffstat (limited to 'sigmod/Map.cpp')
-rw-r--r--sigmod/Map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmod/Map.cpp b/sigmod/Map.cpp
index bea4f227..667b5524 100644
--- a/sigmod/Map.cpp
+++ b/sigmod/Map.cpp
@@ -155,7 +155,7 @@ void Sigmod::Map::setName(const QString& name)
void Sigmod::Map::setFlyWarp(const int flyWarp)
{
if ((flyWarp != -1) && !warpById(flyWarp))
- emit(error(bounds("flyWarp")));
+ emit(error(bounds("flyWarp", flyWarp)));
else
CHECK(flyWarp);
}
@@ -168,7 +168,7 @@ void Sigmod::Map::setType(const Type type)
void Sigmod::Map::setWidth(const int width)
{
if (width <= 0)
- emit(error(bounds("width")));
+ emit(error(bounds("width", 1, INT_MAX, width)));
else
CHECK(width);
}
@@ -176,7 +176,7 @@ void Sigmod::Map::setWidth(const int width)
void Sigmod::Map::setHeight(const int height)
{
if (height <= 0)
- emit(error(bounds("height")));
+ emit(error(bounds("height", 1, INT_MAX, height)));
else
CHECK(height);
}