diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 17:45:36 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 17:45:45 +0100 |
commit | 1dcaa196fd8339dbdd28f9c09c62636b663a3846 (patch) | |
tree | c7faf82210e428787804204e3dc8e5dc6c725947 /src/localplayer.cpp | |
parent | 17b2b19e7b907ae955e500d44dd167d2f31ce7bd (diff) | |
download | mana-client-1dcaa196fd8339dbdd28f9c09c62636b663a3846.tar.gz mana-client-1dcaa196fd8339dbdd28f9c09c62636b663a3846.tar.bz2 mana-client-1dcaa196fd8339dbdd28f9c09c62636b663a3846.tar.xz mana-client-1dcaa196fd8339dbdd28f9c09c62636b663a3846.zip |
Fixed some positioning issues
Started with not being able to click NPCs properly, and I ended up
correcting the draw positions of overhead text, targets and sprite
ordering.
It's now a bit more straight-forward. The position of a being is simply
in the middle of the sprite at the bottom. When drawing the sprite, an
offset remains because all the sprites are compensating for getting
drawn half a tile to the left and one tile up.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 14b32415..f8fad1e8 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -71,9 +71,6 @@ const short walkingKeyboardDelay = 100; LocalPlayer *player_node = NULL; -static const int NAME_X_OFFSET = 15; -static const int NAME_Y_OFFSET = 30; - #ifdef TMWSERV_SUPPORT LocalPlayer::LocalPlayer(): Player(65535, 0, NULL), @@ -86,7 +83,7 @@ LocalPlayer::LocalPlayer(): mCorrectionPoints(-1), mLevelProgress(0), #else -LocalPlayer::LocalPlayer(Uint32 id, Uint16 job, Map *map): +LocalPlayer::LocalPlayer(int id, int job, Map *map): Player(id, job, map), mCharId(0), mJobXp(0), |