shithub: choc

Download patch

ref: b96bbaa06d91cce1e62e20cae78095a7fc14a48b
parent: 17a544e5eb8b7b11a4805dcd3e0b17ada169d1f8
author: Simon Howard <[email protected]>
date: Sun Mar 16 16:06:51 EDT 2014

hexen: Increase maximum level number to MAP60.

Hexen: Deathkings of the Dark Citadel uses levels up to MAP60, not
MAP40 as used in hexen.wad. Bump up the limit for Hexen to MAP60 so
that it is possible to play multiplayer games with hexdd.wad loaded.

Thanks to Rhiyo for the bug report. This fixes #312.

--- a/src/d_mode.c
+++ b/src/d_mode.c
@@ -49,7 +49,7 @@
     { heretic,   shareware,  1, 9 },
     { heretic,   registered, 3, 9 },
     { heretic,   retail,     5, 9 },
-    { hexen,     commercial, 1, 40 },
+    { hexen,     commercial, 1, 60 },
     { strife,    commercial, 1, 34 },
 };
 
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -442,12 +442,12 @@
     }
     else
     {
-        table = TXT_NewTable(4);
+        table = TXT_NewTable(6);
 
-        for (i=0; i<40; ++i)
+        for (i=0; i<60; ++i)
         {
-            x = i % 4;
-            y = i / 4;
+            x = i % 6;
+            y = i / 6;
 
             l = x * 10 + y + 1;