Skip to content

Commit

Permalink
- fix always show iwad box - don't show if queryiwad is false, or if …
Browse files Browse the repository at this point in the history
…-iwad parameter is used
  • Loading branch information
madame-rachelle committed May 3, 2024
1 parent 7ef6fa9 commit 35f5e04
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/d_iwad.cpp
Expand Up @@ -727,8 +727,10 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
}
int pick = 0;

// We got more than one so present the IWAD selection box.
if (picks.Size() > 0)
// Present the IWAD selection box.
bool alwaysshow = (queryiwad && !Args->CheckParm("-iwad"));

if (alwaysshow || picks.Size() > 1)
{
// Locate the user's prefered IWAD, if it was found.
if (defaultiwad[0] != '\0')
Expand All @@ -743,7 +745,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
}
}
}
if (picks.Size() > 0)
if (alwaysshow || picks.Size() > 1)
{
if (!havepicked)
{
Expand Down

0 comments on commit 35f5e04

Please sign in to comment.