diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-25 18:38:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-25 18:38:52 +0300 |
commit | 3d447679df26179b7ffa781c34f5277e6a1aec29 (patch) | |
tree | 242365d32770a89448130684ad7ed2bf00c22561 /src/actorsprite.cpp | |
parent | 8c8f9f6cf53a6d5b8d9d72f4860921b3325a7696 (diff) | |
download | plus-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.gz plus-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.bz2 plus-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.xz plus-3d447679df26179b7ffa781c34f5277e6a1aec29.zip |
Dont compile manaserv related code if manaserv support disabled.
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r-- | src/actorsprite.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index d87156285..aa288e377 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -79,8 +79,12 @@ 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. +#ifdef MANASERV_SUPPORT const int py = getPixelY() + offsetY - ((Net::getNetworkType() == ServerInfo::MANASERV) ? 15 : 32); +#else + const int py = getPixelY() + offsetY - 32; +#endif if (mUsedTargetCursor) { |