From 8c9485fdd799f880f86bfd8ebccbdf33ea879f51 Mon Sep 17 00:00:00 2001 From: NepDisk <16447892+NepDisk@users.noreply.github.com> Date: Tue, 20 Aug 2024 02:59:21 -0400 Subject: [PATCH] Fix encore crash --- src/r_bsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_bsp.c b/src/r_bsp.c index 391d68063..099403896 100644 --- a/src/r_bsp.c +++ b/src/r_bsp.c @@ -46,7 +46,7 @@ boolean R_NoEncore(sector_t *sector, levelflat_t *flat, boolean ceiling) const boolean invertEncore = (sector->flags & MSF_INVERTENCORE); const terrain_t *terrain = (flat != NULL ? flat->terrain : NULL); - if ((terrain == NULL) + if ((terrain != NULL) && !(terrain->flags & TRF_SNEAKERPANEL)) { return invertEncore;