From e8ffad5bde1ab9c5e1c9fcc63720889d27297499 Mon Sep 17 00:00:00 2001 From: Florian Forster 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. SVN-Revision: 6568 --- 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