diff options
author | Simon Howard | 2008-09-17 01:05:14 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-17 01:05:14 +0000 |
commit | 55bb7e8935369cb392c705969ed626fe9c0c391c (patch) | |
tree | 8a7428c5504b089e19625d3657e75f9a8c0f2839 /src/hexen/r_segs.c | |
parent | 61e77600041ba534d824943320e7ddddb8e4f6ce (diff) | |
download | chocolate-doom-55bb7e8935369cb392c705969ed626fe9c0c391c.tar.gz chocolate-doom-55bb7e8935369cb392c705969ed626fe9c0c391c.tar.bz2 chocolate-doom-55bb7e8935369cb392c705969ed626fe9c0c391c.zip |
Convert MAXINT/MININT -> INT_MAX/INT_MIN in Heretic/Hexen code.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1234
Diffstat (limited to 'src/hexen/r_segs.c')
-rw-r--r-- | src/hexen/r_segs.c | 20 |
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++; } |