mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Images are now sorted on Append
This commit is contained in:
parent
80a7c53dec
commit
2d99a0360f
|
@ -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); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue