From bf6ca3e33dd5cdc9e604450fb42ff1db6aff3f2d Mon Sep 17 00:00:00 2001 From: Choupom Date: Thu, 2 Jun 2011 19:16:22 +0200 Subject: fixed tiles infos in groups with custom para or offset in editor --- src/game/editor/editor.cpp | 3 +++ src/game/editor/layer_tiles.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 98c15619..8c186085 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -1174,7 +1174,10 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar) CLayerTiles *pT = static_cast(GetSelectedLayerType(0, LAYERTYPE_TILES)); if(m_ShowTileInfo && pT && pT->m_Visible && m_ZoomLevel <= 300) + { + GetSelectedGroup()->MapScreen(); pT->ShowInfo(); + } } static void *s_pEditorID = (void *)&s_pEditorID; diff --git a/src/game/editor/layer_tiles.cpp b/src/game/editor/layer_tiles.cpp index a2de7350..b792eda9 100644 --- a/src/game/editor/layer_tiles.cpp +++ b/src/game/editor/layer_tiles.cpp @@ -353,6 +353,8 @@ void CLayerTiles::ShowInfo() } x += m_pTiles[c].m_Skip; } + + Graphics()->MapScreen(ScreenX0, ScreenY0, ScreenX1, ScreenY1); } int CLayerTiles::RenderProperties(CUIRect *pToolBox) -- cgit 1.4.1