From d7c106ca900a3b9b808878bae1b4fe2021b703e0 Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 11 Jun 2010 13:44:28 +0200 Subject: fixed border function in the editor. Closes #117 --- src/game/editor/ed_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp index 3a47b00a..ac27a5c6 100644 --- a/src/game/editor/ed_editor.cpp +++ b/src/game/editor/ed_editor.cpp @@ -2925,7 +2925,7 @@ void CEditor::DoMapBorder() pT->m_pTiles[i].m_Index = 1; } - for(int i = ((pT->m_Width-2)*pT->m_Height); i < pT->m_Width*pT->m_Height; ++i) + for(int i = (pT->m_Width*(pT->m_Height-2)); i < pT->m_Width*pT->m_Height; ++i) pT->m_pTiles[i].m_Index = 1; } -- cgit 1.4.1