diff options
author | Simon Howard | 2014-10-19 01:37:36 -0400 |
---|---|---|
committer | Simon Howard | 2014-10-19 01:37:36 -0400 |
commit | 3bd29e8d55ee7b20760d2e51cd2a8d0acf0284e1 (patch) | |
tree | d800acb1e54b4366dcbc4fd684cda36cad007f50 /src | |
parent | dec3348a9a2584fa375407341ea265535dc0f8e3 (diff) | |
download | chocolate-doom-3bd29e8d55ee7b20760d2e51cd2a8d0acf0284e1.tar.gz chocolate-doom-3bd29e8d55ee7b20760d2e51cd2a8d0acf0284e1.tar.bz2 chocolate-doom-3bd29e8d55ee7b20760d2e51cd2a8d0acf0284e1.zip |
doom: Add game names for Freedoom IWADs.
When playing using one of the Freedoom IWADs, set the gamedescription
string to be the full title of the IWAD being played, rather than
showing "Ultimate Doom" or "Doom II: Hell on Earth" etc.
This fixes #446 (thanks chungy).
Diffstat (limited to 'src')
-rw-r--r-- | src/doom/d_main.c | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c index 76acaf48..733a11fb 100644 --- a/src/doom/d_main.c +++ b/src/doom/d_main.c @@ -752,18 +752,25 @@ void D_IdentifyVersion(void) void D_SetGameDescription(void) { + boolean is_freedoom = W_CheckNumForName("FREEDOOM") >= 0, + is_freedm = W_CheckNumForName("FREEDM") >= 0; + gamedescription = "Unknown"; if (logical_gamemission == doom) { // Doom 1. But which version? - if (gamemode == retail) + if (is_freedoom) + { + gamedescription = GetGameName("Freedoom: Phase 1"); + } + else if (gamemode == retail) { // Ultimate Doom gamedescription = GetGameName("The Ultimate DOOM"); - } + } else if (gamemode == registered) { gamedescription = GetGameName("DOOM Registered"); @@ -777,12 +784,29 @@ void D_SetGameDescription(void) { // Doom 2 of some kind. But which mission? - if (logical_gamemission == doom2) + if (is_freedoom) + { + if (is_freedm) + { + gamedescription = GetGameName("FreeDM"); + } + else + { + gamedescription = GetGameName("Freedoom: Phase 2"); + } + } + else if (logical_gamemission == doom2) + { gamedescription = GetGameName("DOOM 2: Hell on Earth"); + } else if (logical_gamemission == pack_plut) + { gamedescription = GetGameName("DOOM 2: Plutonia Experiment"); + } else if (logical_gamemission == pack_tnt) + { gamedescription = GetGameName("DOOM 2: TNT - Evilution"); + } } } |