From bbae64e4285cc9953dcbc9536920828d40cd8cc4 Mon Sep 17 00:00:00 2001 From: florianf Date: Sun, 7 Mar 2010 10:00:25 +0000 Subject: [PATCH] "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 --- src/scripting/functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.11.0