Fixed skybox clipping: sprite columns shouldn't be clipped against the current portal if rendered on root level of a skybox.

This commit is contained in:
ZZYZX 2016-01-10 05:48:06 +02:00
parent 605fce9008
commit 4bbec2a7fe

View file

@ -322,6 +322,10 @@ nextpost:
// //
static inline bool R_ClipSpriteColumnWithPortals (fixed_t x, fixed_t y, vissprite_t* spr) 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 for (drawseg_t* seg = ds_p; seg-- > firstdrawseg; ) // copied code from killough below
{ {
// ignore segs from other portals // ignore segs from other portals