Images are now sorted on Append

This commit is contained in:
xalduin 2010-06-05 18:47:30 -04:00
parent 80a7c53dec
commit 2d99a0360f

View file

@ -568,6 +568,8 @@ static void CallbackAppendMap(const char *pFileName, void *pUser)
CEditor *pEditor = (CEditor*)pUser; CEditor *pEditor = (CEditor*)pUser;
if(pEditor->Append(pFileName)) if(pEditor->Append(pFileName))
pEditor->m_aFileName[0] = 0; pEditor->m_aFileName[0] = 0;
else
pEditor->SortImages();
} }
static void CallbackSaveMap(const char *pFileName, void *pUser){ if(((CEditor*)pUser)->Save(pFileName)) str_copy(((CEditor*)pUser)->m_aFileName, pFileName, 512); } static void CallbackSaveMap(const char *pFileName, void *pUser){ if(((CEditor*)pUser)->Save(pFileName)) str_copy(((CEditor*)pUser)->m_aFileName, pFileName, 512); }