summaryrefslogtreecommitdiff
path: root/src/p_maputl.c
diff options
context:
space:
mode:
authorSimon Howard2005-07-23 19:17:11 +0000
committerSimon Howard2005-07-23 19:17:11 +0000
commit14737bd64c6b7f0a02c4f26055d5f9a93c6cac53 (patch)
tree71cbe04b34c31bb68e7e65f849b047b6f6238206 /src/p_maputl.c
parent5d20ead2d8367889a9c66b625d225fadd3263d0a (diff)
downloadchocolate-doom-14737bd64c6b7f0a02c4f26055d5f9a93c6cac53.tar.gz
chocolate-doom-14737bd64c6b7f0a02c4f26055d5f9a93c6cac53.tar.bz2
chocolate-doom-14737bd64c6b7f0a02c4f26055d5f9a93c6cac53.zip
Use ANSI-standard limit constants. Remove LINUX define.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 19
Diffstat (limited to 'src/p_maputl.c')
-rw-r--r--src/p_maputl.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/p_maputl.c b/src/p_maputl.c
index c3ea8ded..1566263a 100644
--- a/src/p_maputl.c
+++ b/src/p_maputl.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: p_maputl.c 8 2005-07-23 16:44:57Z fraggle $
+// $Id: p_maputl.c 19 2005-07-23 19:17:11Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.3 2005/07/23 19:17:11 fraggle
+// Use ANSI-standard limit constants. Remove LINUX define.
+//
// Revision 1.2 2005/07/23 16:44:56 fraggle
// Update copyright to GNU GPL
//
@@ -38,7 +41,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: p_maputl.c 8 2005-07-23 16:44:57Z fraggle $";
+rcsid[] = "$Id: p_maputl.c 19 2005-07-23 19:17:11Z fraggle $";
#include <stdlib.h>
@@ -554,7 +557,7 @@ P_BlockThingsIterator
//
// INTERCEPT ROUTINES
//
-intercept_t intercepts[MAXINTERCEPTS];
+intercept_t intercepts[INT_MAXERCEPTS];
intercept_t* intercept_p;
divline_t trace;
@@ -708,7 +711,7 @@ P_TraverseIntercepts
while (count--)
{
- dist = MAXINT;
+ dist = INT_MAX;
for (scan = intercepts ; scan<intercept_p ; scan++)
{
if (scan->frac < dist)
@@ -736,7 +739,7 @@ P_TraverseIntercepts
if ( !func (in) )
return false; // don't bother going farther
- in->frac = MAXINT;
+ in->frac = INT_MAX;
}
return true; // everything was traversed