From 914d3de7c324cb1ec456892702689718352a7842 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 17 Jun 2011 16:46:06 +0200 Subject: First pass on removing tile hard coded values. Every files has been checked against the hard coded 32 values except the map.cpp file. I also added convenience functions in the Game class, centralized the default item icon size, and removed two unused defines in being.cpp. --- src/commandhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commandhandler.cpp') diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index f5864a24..25067fca 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -339,8 +339,8 @@ void CommandHandler::handleWhere(const std::string &args, ChatTab *tab) { std::ostringstream where; where << Game::instance()->getCurrentMapName() << ", coordinates: " - << ((player_node->getPixelX() - 16) / 32) << ", " - << ((player_node->getPixelY() - 32) / 32); + << player_node->getTileX() << ", " + << player_node->getTileY(); tab->chatLog(where.str(), BY_SERVER); } -- cgit v1.2.3-70-g09d2