From 987f9f5c261291dfa0d23587036d27a0426c851b Mon Sep 17 00:00:00 2001 From: Sryder13 Date: Tue, 9 Sep 2014 23:57:12 +0100 Subject: [PATCH] Quick sky fix 2 walls not extending down when a thok barrier has top textures and both ceilings have sky. --- src/hardware/hw_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index da9c5f22..621ec723 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -1699,7 +1699,7 @@ static void HWR_StoreWallRange(double startfrac, double endfrac) { fixed_t depthwallheight; - if (!gr_sidedef->toptexture) + if (!gr_sidedef->toptexture || (gr_frontsector->ceilingpic == skyflatnum && gr_backsector->ceilingpic == skyflatnum)) // when both sectors are sky, the top texture isn't drawn depthwallheight = gr_frontsector->ceilingheight < gr_backsector->ceilingheight ? gr_frontsector->ceilingheight : gr_backsector->ceilingheight; else depthwallheight = gr_frontsector->ceilingheight > gr_backsector->ceilingheight ? gr_frontsector->ceilingheight : gr_backsector->ceilingheight;