diff options
Diffstat (limited to 'src/r_plane.c')
-rw-r--r-- | src/r_plane.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/r_plane.c b/src/r_plane.c index c0df67cb..400821d5 100644 --- a/src/r_plane.c +++ b/src/r_plane.c @@ -372,6 +372,7 @@ void R_DrawPlanes (void) int x; int stop; int angle; + int lumpnum; #ifdef RANGECHECK if (ds_p - drawsegs > MAXDRAWSEGS) @@ -421,9 +422,8 @@ void R_DrawPlanes (void) } // regular flat - ds_source = W_CacheLumpNum(firstflat + - flattranslation[pl->picnum], - PU_STATIC); + lumpnum = firstflat + flattranslation[pl->picnum]; + ds_source = W_CacheLumpNum(lumpnum, PU_STATIC); planeheight = abs(pl->height-viewz); light = (pl->lightlevel >> LIGHTSEGSHIFT)+extralight; @@ -449,6 +449,6 @@ void R_DrawPlanes (void) pl->bottom[x]); } - Z_ChangeTag (ds_source, PU_CACHE); + W_ReleaseLumpNum(lumpnum); } } |