From d13de51121a332cf8613a38d7ed5468f971c999f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 1 Oct 2013 22:30:44 +0300 Subject: replace tile size from 32 to mapTitleSize. --- src/commands.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/commands.cpp') 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); } -- cgit v1.2.3-60-g2f50