about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-06-20 15:27:44 +0200
committeroy <Tom_Adams@web.de>2010-06-20 15:27:44 +0200
commit3475d2ae1b66b1f254ac56a25170448aa19447b1 (patch)
tree648821ebf9f0499e79e158d73eda8bb7d0902a87 /src/game
parent73bdf657c4417bcb76e52b80e63c75024d799751 (diff)
downloadzcatch-3475d2ae1b66b1f254ac56a25170448aa19447b1.tar.gz
zcatch-3475d2ae1b66b1f254ac56a25170448aa19447b1.zip
fixed freeze in the map editor GUI. Closes #138
Diffstat (limited to 'src/game')
-rw-r--r--src/game/editor/ed_editor.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp
index ac27a5c6..4e879c64 100644
--- a/src/game/editor/ed_editor.cpp
+++ b/src/game/editor/ed_editor.cpp
@@ -1393,6 +1393,15 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar)
 			}
 		}
 	}
+	else if(UI()->ActiveItem() == s_pEditorId)
+	{
+		// release mouse
+		if(!UI()->MouseButton(0))
+		{
+			s_Operation = OP_NONE;
+			UI()->SetActiveItem(0);
+		}
+	}
 
 	if(GetSelectedGroup() && GetSelectedGroup()->m_UseClipping)
 	{