mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
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:
parent
470449a963
commit
0f427b8ebd
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue