about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChoupom <andycootlapin@hotmail.fr>2011-06-02 19:16:22 +0200
committeroy <Tom_Adams@web.de>2011-06-27 16:50:38 +0200
commitbf6ca3e33dd5cdc9e604450fb42ff1db6aff3f2d (patch)
tree5e1a9106217d00e3f36b4fb841034e627c41770a
parentd6f34cbaba8b411db12bb88278e6c552d32b0314 (diff)
downloadzcatch-bf6ca3e33dd5cdc9e604450fb42ff1db6aff3f2d.tar.gz
zcatch-bf6ca3e33dd5cdc9e604450fb42ff1db6aff3f2d.zip
fixed tiles infos in groups with custom para or offset in editor
-rw-r--r--src/game/editor/editor.cpp3
-rw-r--r--src/game/editor/layer_tiles.cpp2
2 files changed, 5 insertions, 0 deletions
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<CLayerTiles *>(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)