From d9f9a3b411eb5c2a33527c8a78fa902e07cddd95 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 3 Dec 2008 19:16:37 +0000 Subject: Oops. Subversion-branch: /branches/raven-branch Subversion-revision: 1406 --- src/d_iwad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/d_iwad.c') 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); -- cgit v1.2.3