diff --git a/MissionEditor/IsoView.cpp b/MissionEditor/IsoView.cpp index 7614d61..8e3047a 100644 --- a/MissionEditor/IsoView.cpp +++ b/MissionEditor/IsoView.cpp @@ -1585,22 +1585,13 @@ void CIsoView::OnMouseMove(UINT nFlags, CPoint point) - // display the coordinates - char c[50]; + // display the coordinates CString cap; - itoa(x, c, 10); - cap += c; - cap += " / "; - itoa(y, c, 10); - cap += c; - cap += " - "; - itoa(Map->GetHeightAt(x + y * Map->GetIsoSize()), c, 10); - cap += c; + cap.Format("XY: %d, %d H: %d", y, x, Map->GetHeightAt(x + y * Map->GetIsoSize())); CStatusBarCtrl& stat = ((CMyViewFrame*)owner)->m_statbar.GetStatusBarCtrl(); stat.SetText(cap, 1, 0); - // drag if (m_drag && AD.mode == 0) { RedrawWindow(NULL, NULL, RDW_INVALIDATE);