From 2a2316f720ed7f821809cff840487e992f4918d3 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 17 Mar 2011 19:27:39 +0100 Subject: Fix actor and floor items offsets on tA. The code was simplified a bit, too. --- src/actorsprite.cpp | 3 +-- src/flooritem.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index e43d94e1..0b1dfd39 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -72,8 +72,7 @@ bool ActorSprite::draw(Graphics *graphics, int offsetX, int offsetY) const // best where their base point should be. const int px = getPixelX() + offsetX - 16; // Temporary fix to the Y offset. - const int py = getPixelY() + offsetY - - ((Net::getNetworkType() == ServerInfo::MANASERV) ? 15 : 32); + const int py = getPixelY() + offsetY - 16; if (mUsedTargetCursor) { diff --git a/src/flooritem.cpp b/src/flooritem.cpp index db62ce9a..c5a031fe 100644 --- a/src/flooritem.cpp +++ b/src/flooritem.cpp @@ -42,8 +42,7 @@ FloorItem::FloorItem(int id, // these translations aren't necessary anymore. The sprites know // best where their base point should be. mPos.x = x * map->getTileWidth() + 16; - mPos.y = y * map->getTileHeight() + - ((Net::getNetworkType() == ServerInfo::MANASERV) ? 15 : 32); + mPos.y = y * map->getTileHeight() + 16; setupSpriteDisplay(itemDb->get(itemId).getDisplay()); } -- cgit v1.2.3-70-g09d2