From 8957ae99bdbf99d718af27b562cb152e5ea77dcc Mon Sep 17 00:00:00 2001 From: dobrykafe <121701317+dobrykafe@users.noreply.github.com> Date: Sat, 26 Aug 2023 19:44:53 +0200 Subject: [PATCH] remove whitespace --- src/game/editor/io.cpp | 2 +- src/game/editor/popups.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/editor/io.cpp b/src/game/editor/io.cpp index a490a1952..e04930f02 100644 --- a/src/game/editor/io.cpp +++ b/src/game/editor/io.cpp @@ -432,7 +432,7 @@ void CEditor::HandleMapDrop(const char *pFileName, int StorageType) } void CEditorMap::HandleMapDrop(const char *pFileName, int StorageType) -{ +{ if(m_pEditor->HasUnsavedData()) { str_copy(m_pEditor->m_aFileNamePending, pFileName); diff --git a/src/game/editor/popups.cpp b/src/game/editor/popups.cpp index 0c2234d1f..ad81fc11f 100644 --- a/src/game/editor/popups.cpp +++ b/src/game/editor/popups.cpp @@ -1822,12 +1822,12 @@ CUI::EPopupMenuFunctionResult CEditor::PopupEvent(void *pContext, CUIRect View, pEditor->LoadCurrentMap(); } else if(pEditor->m_PopupEventType == POPEVENT_LOADDROP) - { + { int Result = pEditor->Load(pEditor->m_aFileNamePending, IStorage::TYPE_ALL_OR_ABSOLUTE); if(!Result) dbg_msg("editor", "editing passed map file '%s' failed", pEditor->m_aFileNamePending); pEditor->m_aFileNamePending[0] = 0; - } + } else if(pEditor->m_PopupEventType == POPEVENT_NEW) { pEditor->Reset();