remove whitespace

This commit is contained in:
dobrykafe 2023-08-26 19:44:53 +02:00
parent 5e923adcc9
commit 8957ae99bd
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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();