diff options
| author | oy <Tom_Adams@web.de> | 2010-06-20 15:27:44 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-06-20 15:27:44 +0200 |
| commit | 3475d2ae1b66b1f254ac56a25170448aa19447b1 (patch) | |
| tree | 648821ebf9f0499e79e158d73eda8bb7d0902a87 /src/game | |
| parent | 73bdf657c4417bcb76e52b80e63c75024d799751 (diff) | |
| download | zcatch-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.cpp | 9 |
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) { |