diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-01-18 23:01:52 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-01-19 23:22:40 +0100 |
commit | 7272d727271b226948ff56f486a3f322fe1762bd (patch) | |
tree | 78fc7ffdf814ac01eba8766650b24f7d8892ecc9 /src/defaults.cpp | |
parent | 4159ba015c5f2035d188367d85d85052a7673cdc (diff) | |
download | mana-7272d727271b226948ff56f486a3f322fe1762bd.tar.gz mana-7272d727271b226948ff56f486a3f322fe1762bd.tar.bz2 mana-7272d727271b226948ff56f486a3f322fe1762bd.tar.xz mana-7272d727271b226948ff56f486a3f322fe1762bd.zip |
Fixed the click area for NPCs and other players
By taking into account that the sprite is drawn half a tile lower than
the position of the being (that is messy on its own, but hard to fix
while supporting both pixel and tile based movement).
It also makes sure that the click area is at least 32x32 pixels, no
matter how small the being. This fixes the lack of a clickable area
for NPCs without a sprite (like some chests or signs) and makes
small monsters like maggots easier to hit.
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/defaults.cpp')
0 files changed, 0 insertions, 0 deletions