about summary refs log tree commit diff
path: root/src/game/editor
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-06-11 13:44:28 +0200
committeroy <Tom_Adams@web.de>2010-06-11 13:44:28 +0200
commitd7c106ca900a3b9b808878bae1b4fe2021b703e0 (patch)
tree5def5d5d6eae6ac85b04db1ae298bd01bd40f341 /src/game/editor
parent39853bcf897c351ed392fb2f08215b1499e86906 (diff)
downloadzcatch-d7c106ca900a3b9b808878bae1b4fe2021b703e0.tar.gz
zcatch-d7c106ca900a3b9b808878bae1b4fe2021b703e0.zip
fixed border function in the editor. Closes #117
Diffstat (limited to 'src/game/editor')
-rw-r--r--src/game/editor/ed_editor.cpp2
1 files changed, 1 insertions, 1 deletions
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;
 }