Set hit data on spawned decals

git-svn-id: https://svn.eduke32.com/eduke32@5388 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-10-20 07:15:05 +00:00
parent 470449a963
commit 0f427b8ebd

View file

@ -731,6 +731,8 @@ static int32_t P_PostFireHitscan(int32_t p, int32_t k, hitdata_t *hit, int32_t i
{ {
l = A_Spawn(k, decaltile); l = A_Spawn(k, decaltile);
A_SetHitData(l, hit);
if (!A_CheckSpriteFlags(l, SFLAG_DECAL)) if (!A_CheckSpriteFlags(l, SFLAG_DECAL))
actor[l].flags |= SFLAG_DECAL; actor[l].flags |= SFLAG_DECAL;
@ -1074,6 +1076,8 @@ static int32_t A_ShootCustom(const int32_t i, const int32_t atwith, int16_t sa,
{ {
k = A_Spawn(i, proj->decal); k = A_Spawn(i, proj->decal);
A_SetHitData(k, &hit);
if (!A_CheckSpriteFlags(k, SFLAG_DECAL)) if (!A_CheckSpriteFlags(k, SFLAG_DECAL))
actor[k].flags |= SFLAG_DECAL; actor[k].flags |= SFLAG_DECAL;