From 0f427b8ebd355e65ef198f508b74f4871085ba04 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 20 Oct 2015 07:15:05 +0000 Subject: [PATCH] Set hit data on spawned decals git-svn-id: https://svn.eduke32.com/eduke32@5388 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polymer/eduke32/source/player.c b/polymer/eduke32/source/player.c index 5438eb6b8..4b3ab2ce3 100644 --- a/polymer/eduke32/source/player.c +++ b/polymer/eduke32/source/player.c @@ -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); + A_SetHitData(l, hit); + if (!A_CheckSpriteFlags(l, 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); + A_SetHitData(k, &hit); + if (!A_CheckSpriteFlags(k, SFLAG_DECAL)) actor[k].flags |= SFLAG_DECAL;