From 1bb52b9c2d270f243bda280915406645ca59b207 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 23 Apr 2025 19:54:17 +0200 Subject: [PATCH] check ceiling first in encore flat precaching no clue why but this fixes the sides of the road on ORR not being encore remapped --- src/hardware/hw_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index 5ba8655b8..f3b4ae84f 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -553,7 +553,7 @@ static void HWR_PrecacheLevelFlats(void) // gotta check sector floor and ceiling for (j = 0; j < 2; j++) { - const boolean ceiling = (j == 1); + const boolean ceiling = (j == 0); INT32 pic = ceiling ? sec->ceilingpic : sec->floorpic; levelflat = levelflats[pic];