From 4bbec2a7fe7df584a22d1002677c7eb7fc2171f6 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Sun, 10 Jan 2016 05:48:06 +0200 Subject: [PATCH] Fixed skybox clipping: sprite columns shouldn't be clipped against the current portal if rendered on root level of a skybox. --- src/r_things.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/r_things.cpp b/src/r_things.cpp index cb4c1f00b..12d808075 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -322,6 +322,10 @@ nextpost: // static inline bool R_ClipSpriteColumnWithPortals (fixed_t x, fixed_t y, vissprite_t* spr) { + // [ZZ] 10.01.2016: don't clip sprites from the root of a skybox. + if (CurrentPortalInSkybox) + return false; + for (drawseg_t* seg = ds_p; seg-- > firstdrawseg; ) // copied code from killough below { // ignore segs from other portals