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.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index 99cb00d6..77e9ac02 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -145,7 +145,7 @@ class LocalPlayer : public Player #ifdef TMWSERV_SUPPORT LocalPlayer(); #else - LocalPlayer(Uint32 id, Uint16 job, Map *map); + LocalPlayer(int id, int job, Map *map); #endif /** @@ -170,13 +170,13 @@ class LocalPlayer : public Player /** * Returns the player's inventory. */ - Inventory* getInventory() const { return mInventory; } + Inventory *getInventory() const { return mInventory; } #ifdef EATHENA_SUPPORT /** * Returns the player's storage */ - Inventory* getStorage() const { return mStorage; } + Inventory *getStorage() const { return mStorage; } #endif #ifdef TMWSERV_SUPPORT @@ -275,9 +275,6 @@ class LocalPlayer : public Player /** * Triggers whether or not to show the name as a GM name. - * NOTE: This doesn't mean that just anyone can use this. - * If the server doesn't acknowlege you, you won't be shown - * as a GM on other people's clients. */ virtual void setGM(); -- cgit v1.2.3-70-g09d2