summaryrefslogtreecommitdiff
path: root/src/st_stuff.c
diff options
context:
space:
mode:
authorSimon Howard2011-03-28 23:33:09 +0000
committerSimon Howard2011-03-28 23:33:09 +0000
commit15a1c4924707f78ca4f9e109292e1ca35e83f1f7 (patch)
tree2aa76336a4fc3d36cdd758f35b9be4195fc331b0 /src/st_stuff.c
parenta4ff8b18d8c02b566ec1e203f983fc111408a752 (diff)
downloadchocolate-doom-15a1c4924707f78ca4f9e109292e1ca35e83f1f7.tar.gz
chocolate-doom-15a1c4924707f78ca4f9e109292e1ca35e83f1f7.tar.bz2
chocolate-doom-15a1c4924707f78ca4f9e109292e1ca35e83f1f7.zip
Emulate bug with IDMUS cheat when emulating v1.9 (thanks Alexandre
Xavier). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2314
Diffstat (limited to 'src/st_stuff.c')
-rw-r--r--src/st_stuff.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/st_stuff.c b/src/st_stuff.c
index d9c45098..b1a46df5 100644
--- a/src/st_stuff.c
+++ b/src/st_stuff.c
@@ -521,8 +521,13 @@ ST_Responder (event_t* ev)
plyr->message = DEH_String(STSTR_MUS);
cht_GetParam(&cheat_mus, buf);
-
- if (gamemode == commercial)
+
+ // Note: The original v1.9 had a bug that tried to play back
+ // the Doom II music regardless of gamemode. This was fixed
+ // in the Ultimate Doom executable so that it would work for
+ // the Doom 1 music as well.
+
+ if (gamemode == commercial || gameversion < exe_ultimate)
{
musnum = mus_runnin + (buf[0]-'0')*10 + buf[1]-'0' - 1;