From: Florian Forster Date: Sun, 7 Mar 2010 10:00:25 +0000 (+0000) Subject: "whereami()" function: Print coordinates as integers. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e8ffad5bde1ab9c5e1c9fcc63720889d27297499;p=supertux.git "whereami()" function: Print coordinates as integers. The floating point part of the coordinates are distracting and not relevant. SVN-Revision: 6568 --- diff --git a/src/scripting/functions.cpp b/src/scripting/functions.cpp index 24b6b3329..5a03f37ed 100644 --- a/src/scripting/functions.cpp +++ b/src/scripting/functions.cpp @@ -252,7 +252,7 @@ void whereami() { if (!validate_sector_player()) return; ::Player* tux = Sector::current()->player; - log_info << "You are at x " << tux->get_pos().x << ", y " << tux->get_pos().y << std::endl; + log_info << "You are at x " << ((int) tux->get_pos().x) << ", y " << ((int) tux->get_pos().y) << std::endl; } void gotoend()