summaryrefslogtreecommitdiffstats
path: root/sigmod/Sigmod.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/Sigmod.cpp
parente88f1843d61fd0d4c02fa85c3444c786f8c8fd8d (diff)
Bounds errors are verbose now and some unchecked conditions fixed as well
Diffstat (limited to 'sigmod/Sigmod.cpp')
-rw-r--r--sigmod/Sigmod.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmod/Sigmod.cpp b/sigmod/Sigmod.cpp
index 26895d08..576eec0b 100644
--- a/sigmod/Sigmod.cpp
+++ b/sigmod/Sigmod.cpp
@@ -373,7 +373,7 @@ void Sigmod::Sigmod::setStartMap(const int startMap)
if (!m_singlePlayer)
emit(error(unused("startMap")));
if (!mapById(startMap))
- emit(error(bounds("startMap")));
+ emit(error(bounds("startMap", startMap)));
else
CHECK(startMap);
}
@@ -384,9 +384,9 @@ void Sigmod::Sigmod::setStartWarp(const int startWarp)
emit(error(unused("startWarp")));
const Map* map = mapById(m_startMap);
if (!map)
- emit(error(bounds("startMap")));
+ emit(error(bounds("startMap", m_startMap)));
else if (!map->warpById(startWarp))
- emit(error(bounds("startWarp")));
+ emit(error(bounds("startWarp", startWarp)));
else
CHECK(startWarp);
}