summaryrefslogtreecommitdiff
path: root/src/r_segs.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/r_segs.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/r_segs.c')
-rw-r--r--src/r_segs.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/r_segs.c b/src/r_segs.c
index 92caf583..37acec22 100644
--- a/src/r_segs.c
+++ b/src/r_segs.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: r_segs.c 8 2005-07-23 16:44:57Z fraggle $
+// $Id: r_segs.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
//
@@ -36,7 +39,7 @@
static const char
-rcsid[] = "$Id: r_segs.c 8 2005-07-23 16:44:57Z fraggle $";
+rcsid[] = "$Id: r_segs.c 19 2005-07-23 19:17:11Z fraggle $";
@@ -175,7 +178,7 @@ R_RenderMaskedSegRange
for (dc_x = x1 ; dc_x <= x2 ; dc_x++)
{
// calculate lighting
- if (maskedtexturecol[dc_x] != MAXSHORT)
+ if (maskedtexturecol[dc_x] != SHRT_MAX)
{
if (!fixedcolormap)
{
@@ -195,7 +198,7 @@ R_RenderMaskedSegRange
(byte *)R_GetColumn(texnum,maskedtexturecol[dc_x]) -3);
R_DrawMaskedColumn (col);
- maskedtexturecol[dc_x] = MAXSHORT;
+ maskedtexturecol[dc_x] = SHRT_MAX;
}
spryscale += rw_scalestep;
}
@@ -489,8 +492,8 @@ R_StoreWallRange
ds_p->silhouette = SIL_BOTH;
ds_p->sprtopclip = screenheightarray;
ds_p->sprbottomclip = negonearray;
- ds_p->bsilheight = MAXINT;
- ds_p->tsilheight = MININT;
+ ds_p->bsilheight = INT_MAX;
+ ds_p->tsilheight = INT_MIN;
}
else
{
@@ -506,7 +509,7 @@ R_StoreWallRange
else if (backsector->floorheight > viewz)
{
ds_p->silhouette = SIL_BOTTOM;
- ds_p->bsilheight = MAXINT;
+ ds_p->bsilheight = INT_MAX;
// ds_p->sprbottomclip = negonearray;
}
@@ -518,21 +521,21 @@ R_StoreWallRange
else if (backsector->ceilingheight < viewz)
{
ds_p->silhouette |= SIL_TOP;
- ds_p->tsilheight = MININT;
+ ds_p->tsilheight = INT_MIN;
// ds_p->sprtopclip = screenheightarray;
}
if (backsector->ceilingheight <= frontsector->floorheight)
{
ds_p->sprbottomclip = negonearray;
- ds_p->bsilheight = MAXINT;
+ ds_p->bsilheight = INT_MAX;
ds_p->silhouette |= SIL_BOTTOM;
}
if (backsector->floorheight >= frontsector->ceilingheight)
{
ds_p->sprtopclip = screenheightarray;
- ds_p->tsilheight = MININT;
+ ds_p->tsilheight = INT_MIN;
ds_p->silhouette |= SIL_TOP;
}
@@ -747,12 +750,12 @@ R_StoreWallRange
if (maskedtexture && !(ds_p->silhouette&SIL_TOP))
{
ds_p->silhouette |= SIL_TOP;
- ds_p->tsilheight = MININT;
+ ds_p->tsilheight = INT_MIN;
}
if (maskedtexture && !(ds_p->silhouette&SIL_BOTTOM))
{
ds_p->silhouette |= SIL_BOTTOM;
- ds_p->bsilheight = MAXINT;
+ ds_p->bsilheight = INT_MAX;
}
ds_p++;
}