- 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;
FixPathSeperator(current_filename);
int lumpnum = Wads.CheckNumForFullName(current_filename);
if (openmode != OM_FILE)
{
int lumpnum = Wads.CheckNumForFullName(current_filename);
if (lumpnum >= 0)
{
fp = Wads.ReopenLumpNum(lumpnum);

View file

@ -226,7 +226,7 @@ FString WildMIDIDevice::GetStats()
//
//==========================================================================
void WildMIDIDevice::WildMidiSetOption(int opt, int set)
{
Renderer->SetOption(opt, set);
}
void WildMIDIDevice::WildMidiSetOption(int opt, int set)
{
Renderer->SetOption(opt, set);
}