From a5bd671e558aea5a44fae73adb13a6bdb9ae58b0 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 12 Jul 2017 20:25:48 +0200 Subject: [PATCH] Show X and Y coordinates in map editor --- src/game/editor/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 901a8801f..4668670ff 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -5060,7 +5060,7 @@ void CEditor::RenderMenubar(CUIRect MenuBar) time(&rawtime); timeinfo = localtime(&rawtime); - str_format(aBuf, sizeof(aBuf), "Z: %i, A: %.1f, G: %i %02d:%02d", m_ZoomLevel, m_AnimateSpeed, m_GridFactor, timeinfo->tm_hour, timeinfo->tm_min); + str_format(aBuf, sizeof(aBuf), "X: %i, Y: %i, Z: %i, A: %.1f, G: %i %02d:%02d", (int)UI()->MouseWorldX()/32, (int)UI()->MouseWorldY()/32, m_ZoomLevel, m_AnimateSpeed, m_GridFactor, timeinfo->tm_hour, timeinfo->tm_min); UI()->DoLabel(&Info, aBuf, 10.0f, 1, -1); static int s_CloseButton = 0;