summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2014-04-10 00:40:08 -0400
committerSimon Howard2014-04-10 00:40:08 -0400
commitd832e501dd51097ff679b287bd2a5de5bb3b1799 (patch)
treea01303cfa68e6d1d6e989797f14b270926f0c1eb
parent12a2c9441eff63f8cd3db594b826305454736182 (diff)
downloadchocolate-doom-d832e501dd51097ff679b287bd2a5de5bb3b1799.tar.gz
chocolate-doom-d832e501dd51097ff679b287bd2a5de5bb3b1799.tar.bz2
chocolate-doom-d832e501dd51097ff679b287bd2a5de5bb3b1799.zip
doom: Allow warp up to MAP40 to match Vanilla.
Vanilla Doom allows warp with the IDCLEV cheat up to MAP40, though it normally crashes. Match this behavior and set MAP40 as the maximum rather than MAP34. This fixes #181 (thanks Alexandre Xavier).
-rw-r--r--src/doom/st_stuff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/doom/st_stuff.c b/src/doom/st_stuff.c
index d00eeba1..08546dd7 100644
--- a/src/doom/st_stuff.c
+++ b/src/doom/st_stuff.c
@@ -654,14 +654,16 @@ ST_Responder (event_t* ev)
&& ((epsd > 1) || (map > 9)))
return false;
+ // The source release has this check as map > 34. However, Vanilla
+ // Doom allows IDCLEV up to MAP40 even though it normally crashes.
if ((gamemode == commercial)
- && (( epsd > 1) || (map > 34)))
+ && (( epsd > 1) || (map > 40)))
return false;
// So be it.
plyr->message = DEH_String(STSTR_CLEV);
G_DeferedInitNew(gameskill, epsd, map);
- }
+ }
}
return false;
}