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/heretic/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/heretic/r_segs.c')
-rw-r--r-- | src/heretic/r_segs.c | 20 |
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++; } |