diff --git a/src/p_mobj.c b/src/p_mobj.c index a7b1f701..f96db086 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -8538,12 +8538,12 @@ void P_MobjThinker(mobj_t *mobj) } else { - P_SpawnMobj(mobj->x + (P_RandomRange(-48,48)<y + (P_RandomRange(-48,48)<z + (24<x + (P_RandomRange(-48,48)*mobj->scale), + mobj->y + (P_RandomRange(-48,48)*mobj->scale), + mobj->z + (24*mobj->scale) + (P_RandomRange(-8,8)*mobj->scale), MT_SIGNSPARKLE); mobj->flags &= ~MF_NOGRAVITY; - if (abs(mobj->z - mobj->movefactor) <= 512<cvmem) + if (abs(mobj->z - mobj->movefactor) <= (512*mobj->scale) && !mobj->cvmem) { if (mobj->info->seesound) S_StartSound(mobj, mobj->info->seesound);