- don't look up a lump name in PathExpander if we are only looking for real files.

This commit is contained in:
Christoph Oelckers 2015-12-30 10:21:17 +01:00
parent 1def61e3e3
commit aff42a6186
2 changed files with 5 additions and 5 deletions

View file

@ -74,10 +74,10 @@ FileReader *PathExpander::openFileReader(const char *name, int *plumpnum)
current_filename = name; current_filename = name;
FixPathSeperator(current_filename); FixPathSeperator(current_filename);
int lumpnum = Wads.CheckNumForFullName(current_filename);
if (openmode != OM_FILE) if (openmode != OM_FILE)
{ {
int lumpnum = Wads.CheckNumForFullName(current_filename);
if (lumpnum >= 0) if (lumpnum >= 0)
{ {
fp = Wads.ReopenLumpNum(lumpnum); fp = Wads.ReopenLumpNum(lumpnum);