diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-01 22:30:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-01 22:30:44 +0300 |
commit | d13de51121a332cf8613a38d7ed5468f971c999f (patch) | |
tree | 253c2911e291303fd90eb5d61c23076630782a11 /src/commands.cpp | |
parent | 6915c38ca9c35bfb9a5ea05fe957463d644a75de (diff) | |
download | manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.gz manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.bz2 manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.xz manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.zip |
replace tile size from 32 to mapTitleSize.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 727bb036c..67bf9cf73 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -287,9 +287,8 @@ impHandler2(where) { std::ostringstream where; where << Game::instance()->getCurrentMapName() << ", coordinates: " - << ((player_node->getPixelX() - 16) / 32) << ", " - << ((player_node->getPixelY() - 32) / 32); - + << ((player_node->getPixelX() - mapTileSize / 2) / mapTileSize) + << ", " << ((player_node->getPixelY() - mapTileSize) / mapTileSize); tab->chatLog(where.str(), BY_SERVER); } |