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/map.cpp | |
parent | 17b2b19e7b907ae955e500d44dd167d2f31ce7bd (diff) | |
download | mana-1dcaa196fd8339dbdd28f9c09c62636b663a3846.tar.gz mana-1dcaa196fd8339dbdd28f9c09c62636b663a3846.tar.bz2 mana-1dcaa196fd8339dbdd28f9c09c62636b663a3846.tar.xz mana-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/map.cpp')
-rw-r--r-- | src/map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index 551c10f3..59e6201f 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -144,7 +144,7 @@ void MapLayer::draw(Graphics *graphics, int startX, int startY, #ifdef TMWSERV_SUPPORT while (si != sprites.end() && (*si)->getPixelY() <= y * 32) #else - while (si != sprites.end() && (*si)->getPixelY() <= y * 32 - 32) + while (si != sprites.end() && (*si)->getPixelY() <= y * 32) #endif { (*si)->draw(graphics, -scrollX, -scrollY); |