From d832e501dd51097ff679b287bd2a5de5bb3b1799 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 10 Apr 2014 00:40:08 -0400 Subject: 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). --- src/doom/st_stuff.c | 6 ++++-- 1 file 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; } -- cgit v1.2.3