ref: d832e501dd51097ff679b287bd2a5de5bb3b1799
parent: 12a2c9441eff63f8cd3db594b826305454736182
author: Simon Howard <[email protected]>
date: Wed Apr 9 20:40:08 EDT 2014
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).
--- a/src/doom/st_stuff.c
+++ b/src/doom/st_stuff.c
@@ -654,14 +654,16 @@
&& ((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;
}