summaryrefslogtreecommitdiffstats
path: root/sigmod/Tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/Tile.cpp')
-rw-r--r--sigmod/Tile.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/sigmod/Tile.cpp b/sigmod/Tile.cpp
index 37854648..31f51c6b 100644
--- a/sigmod/Tile.cpp
+++ b/sigmod/Tile.cpp
@@ -33,7 +33,7 @@ Sigmod::Tile::Tile(const Sigmod* parent, const int id) :
Object(parent, id),
m_name(""),
m_sprite(-1),
- m_from(D_End),
+ m_from(D_Right - D_Up + 1),
m_script("", "")
{
for (int i = 0; i < m_from.size(); ++i)
@@ -41,13 +41,15 @@ Sigmod::Tile::Tile(const Sigmod* parent, const int id) :
}
Sigmod::Tile::Tile(const Tile& tile, const Sigmod* parent, const int id) :
- Object(parent, id)
+ Object(parent, id),
+ m_from(D_Right - D_Up + 1)
{
*this = tile;
}
Sigmod::Tile::Tile(const QDomElement& xml, const Sigmod* parent, const int id) :
- Object(parent, id)
+ Object(parent, id),
+ m_from(D_Right - D_Up + 1)
{
LOAD_ID();
load(xml);