summaryrefslogtreecommitdiff
path: root/src/hexen/r_segs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hexen/r_segs.c')
-rw-r--r--src/hexen/r_segs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/hexen/r_segs.c b/src/hexen/r_segs.c
index ac7c1934..4eef6040 100644
--- a/src/hexen/r_segs.c
+++ b/src/hexen/r_segs.c
@@ -131,7 +131,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)
{
@@ -152,7 +152,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;
}
@@ -435,8 +435,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
{
@@ -453,7 +453,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)
@@ -464,20 +464,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;
@@ -652,12 +652,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++;
}