Skip to content

Commit

Permalink
- don't show iwad box if priority iwad has been located for the curre…
Browse files Browse the repository at this point in the history
…ntly loaded mods gameinfo
  • Loading branch information
madame-rachelle committed Oct 12, 2024
1 parent 4cb6026 commit e562111
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/d_iwad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ EXTERN_CVAR(Bool, autoloadbrightmaps)
EXTERN_CVAR(Bool, autoloadwidescreen)
EXTERN_CVAR(String, language)

bool foundprio = false; // global to prevent iwad box from appearing

//==========================================================================
//
// Parses IWAD definitions
Expand Down Expand Up @@ -695,6 +697,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
picks.Clear();
picks.Push(found);
pickedprio = mIWadInfos[found.mInfoIndex].prio;
foundprio = true;
}
}
}
Expand Down Expand Up @@ -750,7 +753,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
int pick = 0;

// Present the IWAD selection box.
bool alwaysshow = (queryiwad && !Args->CheckParm("-iwad"));
bool alwaysshow = (queryiwad && !Args->CheckParm("-iwad") && !foundprio);

if (alwaysshow || picks.Size() > 1)
{
Expand Down

0 comments on commit e562111

Please sign in to comment.