From 32283037ed13e7e09ea4cd2880dd656a2b6540d7 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 11 Jul 2021 12:42:33 +1000 Subject: [PATCH] - Use `isWW2GI()` in more places. --- source/core/searchpaths.cpp | 2 +- source/games/duke/src/gamedef.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/searchpaths.cpp b/source/core/searchpaths.cpp index ad51036f2..b82fdda74 100644 --- a/source/core/searchpaths.cpp +++ b/source/core/searchpaths.cpp @@ -930,7 +930,7 @@ const char* G_DefaultDefFile(void) if (g_gameType & GAMEFLAG_DEER) return "rrdeer.def"; - if (g_gameType & GAMEFLAG_WW2GI) + if (isWW2GI()) return "ww2gi.def"; if (isSWALL()) diff --git a/source/games/duke/src/gamedef.cpp b/source/games/duke/src/gamedef.cpp index 89ccc2dda..1c3edd0a5 100644 --- a/source/games/duke/src/gamedef.cpp +++ b/source/games/duke/src/gamedef.cpp @@ -3110,7 +3110,7 @@ static const char* ConFile(void) // WW2GI anf NAM special con names got introduced by EDuke32. // Do we really need these? - if (g_gameType & GAMEFLAG_WW2GI) + if (isWW2GI()) { if (fileSystem.FindFile("ww2gi.con") >= 0) return "ww2gi.con"; }