Fix loading levels that are... uh, just levels.

This commit is contained in:
Ethan Lee
2021-08-18 11:00:26 -04:00
parent 4154066c26
commit ea74b93f38
3 changed files with 7 additions and 2 deletions

View File

@@ -1770,7 +1770,11 @@ bool editorclass::load(std::string& _path)
}
else
{
MAYBE_FAIL(FILESYSTEM_mountAssets(_path.c_str()));
/* "Sometimes a level is just a level." */
if (!FILESYSTEM_exists(_path.c_str()))
{
MAYBE_FAIL(FILESYSTEM_mountAssets(_path.c_str()));
}
}
if (!FILESYSTEM_loadTiXml2Document(_path.c_str(), doc))