summaryrefslogtreecommitdiff
path: root/src/hexen/p_setup.c
diff options
context:
space:
mode:
authorFabian Greffrath2015-02-13 11:26:56 +0100
committerFabian Greffrath2015-02-13 11:26:56 +0100
commit006e890f57abda5615a76ae5525a4614425b3227 (patch)
treef1df526eeb4945327efd30f2a8b40c03917a14e0 /src/hexen/p_setup.c
parent50cc0ee15d2db46ee12460ece957b33bb0a10b7f (diff)
downloadchocolate-doom-006e890f57abda5615a76ae5525a4614425b3227.tar.gz
chocolate-doom-006e890f57abda5615a76ae5525a4614425b3227.tar.bz2
chocolate-doom-006e890f57abda5615a76ae5525a4614425b3227.zip
Identify the "shareware" version early on.
Following the concept of Chocolate Doom, D_IdentifyVersion and D_SetGameDescription are introduced and called right after loading the IWAD. The first one checks for the characteristics of the "shareware" IWAD and sets gamemode accordingly, whereas the latter sets the gamedescription string according to gamemode. This string is then used in I_PrintStartupBanner() and I_SetWindowTitle(). So, the "shareware" version identifies itself properly now. I consider support for the 4 Level Hexen Demo pretty complete by now.
Diffstat (limited to 'src/hexen/p_setup.c')
-rw-r--r--src/hexen/p_setup.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hexen/p_setup.c b/src/hexen/p_setup.c
index db9af228..428e6166 100644
--- a/src/hexen/p_setup.c
+++ b/src/hexen/p_setup.c
@@ -800,13 +800,9 @@ static void InitMapInfo(void)
mapMax = 1;
- // The Hexen Shareware, ne 4-level Demo, is missing the SKY1 lump
- // and uses the SKY2 lump instead. Let's use this fact to identify
- // it and set gamemode accordingly
- if (W_CheckNumForName(default_sky_name) == -1)
+ if (gamemode == shareware)
{
default_sky_name = "SKY2";
- gamemode = shareware;
}
// Put defaults into MapInfo[0]