From a098e22907d4b4995395dc9d474f1ab134d399df Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Wed, 4 Feb 2026 12:06:25 -0500 Subject: [PATCH] Fix skywall appearing for some invisible FOFs Fixes bellbridge and secret slide Context: first flat in srb2.srb is F_SKY1 first texture is - aka PIT~ Vanilla kart doesn't have the 2.2 texture refactor aka wallflats, so flats aren't loaded into the textures array but then wallflats came along and lacto just decided to load flats before textures --- src/r_textures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_textures.c b/src/r_textures.c index 64324a708..530b929e7 100644 --- a/src/r_textures.c +++ b/src/r_textures.c @@ -1441,8 +1441,8 @@ void R_UpdateTextureBrightmap(INT32 tx, INT32 bm) static INT32 R_DefineTextures(INT32 i, UINT16 w) { - i = Rloadflats(i, w); - return Rloadtextures(i, w); + i = Rloadtextures(i, w); + return Rloadflats(i, w); } static void R_FinishLoadingTextures(INT32 add)