summaryrefslogtreecommitdiff
path: root/src/heretic/r_segs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/heretic/r_segs.c')
-rw-r--r--src/heretic/r_segs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/heretic/r_segs.c b/src/heretic/r_segs.c
index 0d2940a4..0d4c47ea 100644
--- a/src/heretic/r_segs.c
+++ b/src/heretic/r_segs.c
@@ -140,7 +140,7 @@ void R_RenderMaskedSegRange(drawseg_t * ds, int x1, int x2)
for (dc_x = x1; dc_x <= x2; dc_x++)
{
// calculate lighting
- if (maskedtexturecol[dc_x] != MAXSHORT)
+ if (maskedtexturecol[dc_x] != SHRT_MAX)
{
if (!fixedcolormap)
{
@@ -161,7 +161,7 @@ void R_RenderMaskedSegRange(drawseg_t * ds, int x1, int x2)
maskedtexturecol[dc_x]) - 3);
R_DrawMaskedColumn(col, -1);
- maskedtexturecol[dc_x] = MAXSHORT;
+ maskedtexturecol[dc_x] = SHRT_MAX;
}
spryscale += rw_scalestep;
}
@@ -444,8 +444,8 @@ void R_StoreWallRange(int start, int stop)
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
{
@@ -462,7 +462,7 @@ void R_StoreWallRange(int start, int stop)
else if (backsector->floorheight > viewz)
{
ds_p->silhouette = SIL_BOTTOM;
- ds_p->bsilheight = MAXINT;
+ ds_p->bsilheight = INT_MAX;
// ds_p->sprbottomclip = negonearray;
}
if (frontsector->ceilingheight < backsector->ceilingheight)
@@ -473,20 +473,20 @@ void R_StoreWallRange(int start, int stop)
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;
}
worldhigh = backsector->ceilingheight - viewz;
@@ -660,12 +660,12 @@ void R_StoreWallRange(int start, int stop)
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++;
}