forked from Ports/perfect_dark
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:
1 file changed
+1
-1
+1
-1
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user