summaryrefslogtreecommitdiff
path: root/src/npc.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 17:45:36 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 17:45:45 +0100
commit1dcaa196fd8339dbdd28f9c09c62636b663a3846 (patch)
treec7faf82210e428787804204e3dc8e5dc6c725947 /src/npc.h
parent17b2b19e7b907ae955e500d44dd167d2f31ce7bd (diff)
downloadmana-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/npc.h')
-rw-r--r--src/npc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/npc.h b/src/npc.h
index fed03b51..c2cab6f0 100644
--- a/src/npc.h
+++ b/src/npc.h
@@ -34,9 +34,9 @@ class NPC : public Player
{
public:
#ifdef TMWSERV_SUPPORT
- NPC(Uint16 id, int sprite, Map *map);
+ NPC(int id, int sprite, Map *map);
#else
- NPC(int id, Uint16 job, Map *map, Network *network);
+ NPC(int id, int job, Map *map, Network *network);
#endif
~NPC();