mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- don't look up a lump name in PathExpander if we are only looking for real files.
This commit is contained in:
parent
1def61e3e3
commit
aff42a6186
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue