summaryrefslogtreecommitdiffstats
path: root/sigscript/MapWarpWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/MapWarpWrapper.cpp')
-rw-r--r--sigscript/MapWarpWrapper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sigscript/MapWarpWrapper.cpp b/sigscript/MapWarpWrapper.cpp
index dfa581c6..4af106a9 100644
--- a/sigscript/MapWarpWrapper.cpp
+++ b/sigscript/MapWarpWrapper.cpp
@@ -54,11 +54,11 @@ QString Sigscript::MapWarpWrapper::name() const
return m_warp->name();
}
-QPoint Sigscript::MapWarpWrapper::coordinate() const
+QRect Sigscript::MapWarpWrapper::area() const
{
- if (sigmod()->singlePlayer() && hasValueOfType<QPoint>("coordinate"))
- return valueOfType<QPoint>("coordinate");
- return m_warp->coordinate();
+ if (sigmod()->singlePlayer() && hasValueOfType<QRect>("area"))
+ return valueOfType<QRect>("area");
+ return m_warp->area();
}
Sigmod::MapWarp::Type Sigscript::MapWarpWrapper::type() const