Merge pull request #705 from joshuarwood/fix_chr_light_regression

Fix a regression in light artifact handling through character models
This commit is contained in:
fgsfds authored and GitHub committed 2026-03-13 20:45:33 +01:00
commit d4ac8b155d
1 file changed
+1 -1
+1 -1
View File
@@ -1071,7 +1071,7 @@ bool shotTestLos(struct coord *gunpos2d, struct coord *gundir2d, struct coord *g
objTestHit(prop, &shotdata);
}
if (shotdata.hits[0].prop) {
texturenum = shotdata.hits[0].hitthing.texturenum;
texturenum = (prop->type == PROPTYPE_CHR || prop->type == PROPTYPE_PLAYER) ? -1 : shotdata.hits[0].hitthing.texturenum;
surfacetype = (texturenum >= 0 && texturenum < NUM_TEXTURES) ? g_Textures[texturenum].surfacetype : SURFACETYPE_DEFAULT;
// ignore some glass parts and shields
if (shotdata.hits[0].slowsbullet && texturenum != 10000 &&