From 68b78f44d8e72664fbac0a8676e2ad656b137edd Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Mon, 13 Jan 2020 15:21:35 -0800
Subject: [PATCH] Load flats first so textures with the same name are prefered
 on walls

---
 src/r_data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/r_data.c b/src/r_data.c
index ebb73cd42..9f80e257b 100644
--- a/src/r_data.c
+++ b/src/r_data.c
@@ -1042,10 +1042,10 @@ void R_LoadTextures(void)
 
 	for (i = 0, w = 0; w < numwadfiles; w++)
 	{
-		i = Rloadtextures(i, w);
 #ifdef WALLFLATS
 		i = Rloadflats(i, w);
 #endif
+		i = Rloadtextures(i, w);
 	}
 
 #ifdef HWRENDER
-- 
GitLab