From cb83f5255b360d64c32c7e45d11d242e104e62f5 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 29 Dec 2008 12:06:26 -0500 Subject: Added macos for overriding values in sigscript --- sigscript/MapTileWrapper.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sigscript/MapTileWrapper.cpp') diff --git a/sigscript/MapTileWrapper.cpp b/sigscript/MapTileWrapper.cpp index 2ca2abbe..2faef412 100644 --- a/sigscript/MapTileWrapper.cpp +++ b/sigscript/MapTileWrapper.cpp @@ -43,14 +43,12 @@ Sigscript::TileWrapper* Sigscript::MapTileWrapper::tile() QPoint Sigscript::MapTileWrapper::position() const { - if (sigmod()->singlePlayer() && hasValueOfType("position")) - return valueOfType("position"); + ALLOW_OVERRIDE_SO(tile, QPoint, position); return m_tile->position(); } int Sigscript::MapTileWrapper::zIndex() const { - if (sigmod()->singlePlayer() && hasValueOfType("zIndex")) - return valueOfType("zIndex"); + ALLOW_OVERRIDE_SO(tile, int, zIndex); return m_tile->zIndex(); } -- cgit