From f349818f9d83fa9898d91986f5ee83fe40e171bd Mon Sep 17 00:00:00 2001 From: def Date: Sun, 26 Jul 2015 12:04:43 +0200 Subject: [PATCH] Only save once (hope this doesn't cause any problems) --- src/game/editor/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 86eb28096..d33ada8dd 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -857,6 +857,7 @@ void CEditor::CallbackOpenMap(const char *pFileName, int StorageType, void *pUse pEditor->m_aFileName[0] = 0; } } + void CEditor::CallbackAppendMap(const char *pFileName, int StorageType, void *pUser) { CEditor *pEditor = (CEditor*)pUser; @@ -867,6 +868,7 @@ void CEditor::CallbackAppendMap(const char *pFileName, int StorageType, void *pU pEditor->m_Dialog = DIALOG_NONE; } + void CEditor::CallbackSaveMap(const char *pFileName, int StorageType, void *pUser) { CEditor *pEditor = static_cast(pUser); @@ -879,8 +881,6 @@ void CEditor::CallbackSaveMap(const char *pFileName, int StorageType, void *pUse pFileName = aBuf; } - //TODO:DDRace:anyone find out why do we need to save twice for things to work! - if(pEditor->Save(pFileName)) if(pEditor->Save(pFileName)) { str_copy(pEditor->m_aFileName, pFileName, sizeof(pEditor->m_aFileName));