diff options
-rw-r--r-- | src/d_iwad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d_iwad.c b/src/d_iwad.c index e6ee2cf8..fdec8cb9 100644 --- a/src/d_iwad.c +++ b/src/d_iwad.c @@ -342,7 +342,7 @@ static char *SearchDirectoryForIWAD(char *dir, int mask, GameMission_t *mission) char *filename; char *iwadname; - if ((iwads[i].mission & mask) == 0) + if (((1 << iwads[i].mission) & mask) == 0) { continue; } @@ -389,7 +389,7 @@ static GameMission_t IdentifyIWADByName(char *name, int mask) // Only use supported missions: - if ((iwads[i].mission & mask) == 0) + if (((1 << iwads[i].mission) & mask) == 0) continue; iwadname = DEH_String(iwads[i].name); |