mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix map file argument not opening editor with absolute paths
This commit is contained in:
parent
d64d76d627
commit
5825d5eb7f
|
@ -3207,11 +3207,11 @@ void CClient::Run()
|
||||||
{
|
{
|
||||||
int Result = m_pEditor->Load(m_aCmdEditMap, IStorage::TYPE_ALL);
|
int Result = m_pEditor->Load(m_aCmdEditMap, IStorage::TYPE_ALL);
|
||||||
if(!Result && !fs_is_relative_path(m_aCmdEditMap))
|
if(!Result && !fs_is_relative_path(m_aCmdEditMap))
|
||||||
m_pEditor->Load(m_aCmdEditMap, IStorage::TYPE_ABSOLUTE);
|
Result = m_pEditor->Load(m_aCmdEditMap, IStorage::TYPE_ABSOLUTE);
|
||||||
if(Result)
|
if(Result)
|
||||||
g_Config.m_ClEditor = true;
|
g_Config.m_ClEditor = true;
|
||||||
else
|
else
|
||||||
dbg_msg("demo_player", "editing passed map file '%s' failed", m_aCmdEditMap);
|
dbg_msg("editor", "editing passed map file '%s' failed", m_aCmdEditMap);
|
||||||
m_aCmdEditMap[0] = 0;
|
m_aCmdEditMap[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue