summaryrefslogtreecommitdiff
path: root/src/heretic/doomdef.h
diff options
context:
space:
mode:
authorSimon Howard2008-09-17 01:05:14 +0000
committerSimon Howard2008-09-17 01:05:14 +0000
commit55bb7e8935369cb392c705969ed626fe9c0c391c (patch)
tree8a7428c5504b089e19625d3657e75f9a8c0f2839 /src/heretic/doomdef.h
parent61e77600041ba534d824943320e7ddddb8e4f6ce (diff)
downloadchocolate-doom-55bb7e8935369cb392c705969ed626fe9c0c391c.tar.gz
chocolate-doom-55bb7e8935369cb392c705969ed626fe9c0c391c.tar.bz2
chocolate-doom-55bb7e8935369cb392c705969ed626fe9c0c391c.zip
Convert MAXINT/MININT -> INT_MAX/INT_MIN in Heretic/Hexen code.
Subversion-branch: /branches/raven-branch Subversion-revision: 1234
Diffstat (limited to 'src/heretic/doomdef.h')
-rw-r--r--src/heretic/doomdef.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index 3cfafad4..969448c6 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -32,6 +32,7 @@
#define strcasecmp strcmpi
#define strncasecmp strnicmp
#endif
+#include <limits.h>
#define VERSION 130
#define VERSION_TEXT "v1.3"
@@ -89,17 +90,6 @@ extern byte *destview, *destscreen; // PC direct to screen pointers
#define KEY_LALT KEY_RALT
-
-#define MAXCHAR ((char)0x7f)
-#define MAXSHORT ((short)0x7fff)
-#define MAXINT ((int)0x7fffffff) /* max pos 32-bit int */
-#define MAXLONG ((long)0x7fffffff)
-
-#define MINCHAR ((char)0x80)
-#define MINSHORT ((short)0x8000)
-#define MININT ((int)0x80000000) /* max negative 32-bit integer */
-#define MINLONG ((long)0x80000000)
-
#define FINEANGLES 8192
#define FINEMASK (FINEANGLES-1)
#define ANGLETOFINESHIFT 19 // 0x100000000 to 0x2000