Added loading of ZSDF lumps by full paths

https://forum.zdoom.org/viewtopic.php?t=60139
This commit is contained in:
alexey.lysiuk 2018-04-07 12:43:10 +03:00
parent 5177868773
commit 3239a9eaa6

View file

@ -227,8 +227,10 @@ void P_LoadStrifeConversations (MapData *map, const char *mapname)
bool LoadScriptFile (const char *name, bool include, int type)
{
int lumpnum = Wads.CheckNumForName (name);
const bool found = lumpnum >= 0
|| (lumpnum = Wads.CheckNumForFullName (name)) >= 0;
if (lumpnum < 0)
if (!found)
{
return false;
}