diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-05-01 13:03:49 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-05-01 13:03:49 +0200 |
commit | e3a74efb4fd09e5a65cba3adee5551027c8d6676 (patch) | |
tree | dafe6724615e37b73d3e1f8f4d5f4a0405c15057 /src/map.cpp | |
parent | ab95093c44bdde1d1aeccf20c46ecb87a7d244a9 (diff) | |
download | mana-e3a74efb4fd09e5a65cba3adee5551027c8d6676.tar.gz mana-e3a74efb4fd09e5a65cba3adee5551027c8d6676.tar.bz2 mana-e3a74efb4fd09e5a65cba3adee5551027c8d6676.tar.xz mana-e3a74efb4fd09e5a65cba3adee5551027c8d6676.zip |
Fixing checking of being positions send by the server
Reviewed-by: thorbjorn
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 f1d27e4f..8b1d7b26 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -620,7 +620,7 @@ bool Map::contains(int x, int y) const bool Map::containsPixel(int x, int y) const { - return contains(x ? x / mTileWidth : 0, y ? y / mTileHeight : 0); + return contains(x / mTileWidth, y / mTileHeight); } MetaTile *Map::getMetaTile(int x, int y) const |