From 9482c3e6398709272d7139c33e43f7f28211c4fc Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 11 Feb 2017 23:29:09 +0100 Subject: [PATCH] Fixed voxel clipping bug --- src/r_things.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_things.cpp b/src/r_things.cpp index 3d0ce269e..b4ee5edbb 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -2071,7 +2071,7 @@ void R_DrawSprite (vissprite_t *spr) // [RH] rewrote this to be based on which part of the sector is really visible double scale = InvZtoScale * spr->idepth; - double hzb = DBL_MIN, hzt = DBL_MAX; + double hzb = -DBL_MAX, hzt = DBL_MAX; if (spr->bIsVoxel && spr->floorclip != 0) {