From 3d447679df26179b7ffa781c34f5277e6a1aec29 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Apr 2011 18:38:52 +0300 Subject: Dont compile manaserv related code if manaserv support disabled. --- src/flooritem.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/flooritem.cpp') 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(x * map->getTileWidth() + 16); +#ifdef MANASERV_SUPPORT mPos.y = static_cast(y * map->getTileHeight() + ((Net::getNetworkType() == ServerInfo::MANASERV) ? 15 : 32)); +#else + mPos.y = static_cast(y * map->getTileHeight() + 32); +#endif } else { -- cgit v1.2.3-60-g2f50