"whereami()" function: Print coordinates as integers.
[supertux.git] / src / scripting / functions.cpp
index 24b6b33..5a03f37 100644 (file)
@@ -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()