shithub: qk1

Download patch

ref: d1fec3d8bcbd0e2d1ec505e45fbf59bb5676ce83
parent: 5cffae705208af74c4d6851d19bbf0affcf41fdb
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun Dec 10 17:40:14 EST 2023

bsp30: blue on textures with "{" is transparent

--- a/model_bsp30.c
+++ b/model_bsp30.c
@@ -176,8 +176,8 @@
 			R_InitSky(nil); /* FIXME(sigrid): skybox */
 		else if(tx->name[0] == '{'){
 			for(j = 0; j < pixels; j++){
-				if((tx->data[j] & 0xffffff) == 0x0000ff)
-					tx->data[j] = 0;
+				if((tx->pixels[j] & 0xffffff) == 0x0000ff)
+					tx->pixels[j] = 0;
 			}
 		}
 	}