From 07f2932d3ac681a0063a533895d82c77beac9fd3 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 12 Sep 2022 00:18:35 -0400 Subject: [PATCH] Set owner of particle --- src/info.c | 4 ++-- src/objects/shrink.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/info.c b/src/info.c index e011e7874..0b390cf0a 100644 --- a/src/info.c +++ b/src/info.c @@ -24091,7 +24091,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] = 0, // mass 0, // damage sfx_None, // activesound - MF_SOLID|MF_NOCLIPHEIGHT|MF_NOGRAVITY|MF_DONTENCOREMAP, // flags + MF_SPECIAL|MF_NOCLIPHEIGHT|MF_NOGRAVITY|MF_DONTENCOREMAP, // flags S_NULL // raisestate }, @@ -24172,7 +24172,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] = 0, // mass 0, // damage sfx_None, // activesound - MF_SOLID|MF_NOCLIPHEIGHT|MF_NOGRAVITY|MF_DONTENCOREMAP, // flags + MF_SPECIAL|MF_NOCLIPHEIGHT|MF_NOGRAVITY|MF_DONTENCOREMAP, // flags S_NULL // raisestate }, diff --git a/src/objects/shrink.c b/src/objects/shrink.c index 4053d8248..019f2db2a 100644 --- a/src/objects/shrink.c +++ b/src/objects/shrink.c @@ -318,6 +318,8 @@ static void ShrinkLaserThinker(mobj_t *pohbee, mobj_t *gun, mobj_t *laser) MT_SHRINK_PARTICLE ); + P_SetTarget(&gun_pohbee(particle), pohbee); + particle->color = laser->color; P_SetScale(particle, particle->scale * 2);