summaryrefslogtreecommitdiff
path: root/src/p_maputl.c
diff options
context:
space:
mode:
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