From: florianf 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=bbae64e4285cc9953dcbc9536920828d40cd8cc4;p=supertux.git "whereami()" function: Print coordinates as integers. The floating point part of the coordinates are distracting and not relevant. git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6568 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- 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()