From d3f04a947043cb0fbb7ff230c08db24be2091751 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Tue, 23 Aug 2016 12:42:01 +0200 Subject: [PATCH] Remove accidental code --- src/game/editor/editor.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index e42140bed..64810d926 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -4963,17 +4963,6 @@ int CEditor::PopupMenuFile(CEditor *pEditor, CUIRect View) pEditor->InvokeFileDialog(IStorage::TYPE_ALL, FILETYPE_MAP, "Load map", "Load", "maps", "", pEditor->CallbackOpenMap, pEditor); return 1; } - if(pEditor->DoButton_MenuItem(&s_OpenButton, "Load Current Map", 0, &Slot, 0, "Opens the current map for editing")) - { - if(pEditor->HasUnsavedData()) - { - pEditor->m_PopupEventType = POPEVENT_LOAD; - pEditor->m_PopupEventActivated = true; - } - else - pEditor->InvokeFileDialog(IStorage::TYPE_ALL, FILETYPE_MAP, "Load map", "Load", "maps", "", pEditor->CallbackOpenMap, pEditor); - return 1; - } View.HSplitTop(10.0f, &Slot, &View); View.HSplitTop(12.0f, &Slot, &View);