summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-25 18:38:52 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-25 18:38:52 +0300
commit3d447679df26179b7ffa781c34f5277e6a1aec29 (patch)
tree242365d32770a89448130684ad7ed2bf00c22561 /src/flooritem.cpp
parent8c8f9f6cf53a6d5b8d9d72f4860921b3325a7696 (diff)
downloadmv-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.gz
mv-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.bz2
mv-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.xz
mv-3d447679df26179b7ffa781c34f5277e6a1aec29.zip
Dont compile manaserv related code if manaserv support disabled.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp
index 30458b579..150e020a9 100644
--- a/src/flooritem.cpp
+++ b/src/flooritem.cpp
@@ -63,8 +63,12 @@ FloorItem::FloorItem(int id,
// these translations aren't necessary anymore. The sprites know
// best where their base point should be.
mPos.x = static_cast<float>(x * map->getTileWidth() + 16);
+#ifdef MANASERV_SUPPORT
mPos.y = static_cast<float>(y * map->getTileHeight() +
((Net::getNetworkType() == ServerInfo::MANASERV) ? 15 : 32));
+#else
+ mPos.y = static_cast<float>(y * map->getTileHeight() + 32);
+#endif
}
else
{