shithub: choc

Download patch

ref: 313e56805e28ff78868dce3806c813bc1e98d16b
parent: 16e361951eb7bce9726e4a96699429f2883bd68c
author: Simon Howard <[email protected]>
date: Wed Oct 1 15:14:51 EDT 2008

Remove some duplicate definitions from h2def.h.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1318

--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@ -86,7 +86,6 @@
 static void ExecOptionSCRIPTS(char **args, int tag);
 static void ExecOptionSKILL(char **args, int tag);
 static void ExecOptionPLAYDEMO(char **args, int tag);
-static void ExecOptionMAXZONE(char **args, int tag);
 static void CreateSavePath(void);
 static void WarpCheck(void);
 
@@ -142,7 +141,6 @@
     {"-skill", ExecOptionSKILL, 1, 0},
     {"-playdemo", ExecOptionPLAYDEMO, 1, 0},
     {"-timedemo", ExecOptionPLAYDEMO, 1, 0},
-    {"-maxzone", ExecOptionMAXZONE, 1, 0},
     {NULL, NULL, 0, 0}          // Terminator
 };
 
@@ -463,18 +461,6 @@
     return (mul * n);
 }
 
-
-static void ExecOptionMAXZONE(char **args, int tag)
-{
-    int size;
-
-    size = superatol(args[1]);
-    if (size < MINIMUM_HEAP_SIZE)
-        size = MINIMUM_HEAP_SIZE;
-    if (size > MAXIMUM_HEAP_SIZE)
-        size = MAXIMUM_HEAP_SIZE;
-    maxzone = size;
-}
 
 //==========================================================================
 //
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -103,11 +103,6 @@
 
 //#define NUMARTIFCTS   28
 #define MAXPLAYERS	8
-#define TICRATE		35      // number of tics / second
-#define TICSPERSEC	35
-
-#define MINIMUM_HEAP_SIZE	0x800000        //  8 meg
-#define MAXIMUM_HEAP_SIZE	0x2000000       // 32 meg
 
 typedef unsigned int uint;