summaryrefslogtreecommitdiffstats
path: root/sigmod/MapWarp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/MapWarp.cpp')
-rw-r--r--sigmod/MapWarp.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/sigmod/MapWarp.cpp b/sigmod/MapWarp.cpp
index 545e63a0..1ad2d771 100644
--- a/sigmod/MapWarp.cpp
+++ b/sigmod/MapWarp.cpp
@@ -113,10 +113,10 @@ GETTER(MapWarp, Script, script)
CHECK(MapWarp, QString&, name)
CHECK_BEGIN(MapWarp, QRect&, area)
const Map* map = qobject_cast<const Map*>(parent());
- TBOUNDS_MOD(area_x, 0, map->width() - 1, area.x());
- TBOUNDS_MOD(area_y, 0, map->height() - 1, area.y());
- TBOUNDS_MOD(area_width, 1, map->width() - area.x(), area.width());
- TBOUNDS_MOD(area_height, 1, map->height() - area.y(), area.height());
+ TBOUNDS_MOD(area_x, 0, map->width() - 1, area.x())
+ TBOUNDS_MOD(area_y, 0, map->height() - 1, area.y())
+ TBOUNDS_MOD(area_width, 1, map->width() - area.x(), area.width())
+ TBOUNDS_MOD(area_height, 1, map->height() - area.y(), area.height())
CHECK_END()
CHECK(MapWarp, Type, type)
CHECK_INDEX(MapWarp, int, toMap, game(), map)
@@ -124,10 +124,10 @@ CHECK_BEGIN(MapWarp, int, toWarp)
const Map* map = game()->mapById(m_toMap);
if (!map)
{
- EBOUNDS_IDX(m_toMap);
+ EBOUNDS_IDX(m_toMap)
return false;
}
- IBOUNDS(toWarp, map, warp);
+ IBOUNDS(toWarp, map, warp)
CHECK_END()
CHECK(MapWarp, Script&, script)