From 1dcaa196fd8339dbdd28f9c09c62636b663a3846 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 27 Mar 2009 17:45:36 +0100 Subject: 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. --- src/localplayer.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/localplayer.cpp') 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), -- cgit v1.2.3-70-g09d2