summaryrefslogtreecommitdiffstats
path: root/sigscript/MapEffectWrapper.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-29 12:06:26 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-29 12:06:26 -0500
commitcb83f5255b360d64c32c7e45d11d242e104e62f5 (patch)
treec6611bf95729c4539f53d514d24847d2945408b9 /sigscript/MapEffectWrapper.cpp
parent02d571db3ef9fa2cb73203ef3dc46827ee6960cf (diff)
downloadsigen-sigmod-checks.tar.gz
sigen-sigmod-checks.tar.xz
sigen-sigmod-checks.zip
Added macos for overriding values in sigscriptsigmod-checks
Diffstat (limited to 'sigscript/MapEffectWrapper.cpp')
-rw-r--r--sigscript/MapEffectWrapper.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/sigscript/MapEffectWrapper.cpp b/sigscript/MapEffectWrapper.cpp
index 0302c89d..d51cdca0 100644
--- a/sigscript/MapEffectWrapper.cpp
+++ b/sigscript/MapEffectWrapper.cpp
@@ -43,8 +43,7 @@ QString Sigscript::MapEffectWrapper::name() const
QPoint Sigscript::MapEffectWrapper::coordinate() const
{
- if (sigmod()->singlePlayer() && hasValueOfType<QPoint>("coordinate"))
- return valueOfType<QPoint>("coordinate");
+ ALLOW_OVERRIDE_SO(effect, QPoint, coordinate);
return m_effect->coordinate();
}
@@ -55,8 +54,7 @@ Sigscript::SkinWrapper* Sigscript::MapEffectWrapper::skin()
bool Sigscript::MapEffectWrapper::isGhost() const
{
- if (sigmod()->singlePlayer() && hasValueOfType<bool>("ghost"))
- return valueOfType<bool>("ghost");
+ ALLOW_OVERRIDE_SO(effect, bool, isGhost);
return m_effect->isGhost();
}