From 7f87a0275ba9a4b33917497f598f8a6713f3b750 Mon Sep 17 00:00:00 2001 From: Sryder13 Date: Tue, 24 Oct 2017 22:23:11 +0100 Subject: [PATCH] Spawn item clash versus fake items too --- src/p_map.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p_map.c b/src/p_map.c index 520e27928..bf7ad90d8 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -744,6 +744,8 @@ static boolean PIT_CheckThing(mobj_t *thing) P_SetObjectMomZ(tmthing, 8*FRACUNIT, false); P_InstaThrust(tmthing, R_PointToAngle2(thing->x, thing->y, tmthing->x, tmthing->y)+ANGLE_90, 16*FRACUNIT); + + P_SpawnMobj(thing->x/2 + tmthing->x/2, thing->y/2 + tmthing->y/2, thing->z/2 + tmthing->z/2, MT_ITEMCLASH); } // Other Item Damage @@ -926,6 +928,8 @@ static boolean PIT_CheckThing(mobj_t *thing) P_SetObjectMomZ(tmthing, 8*FRACUNIT, false); P_InstaThrust(tmthing, R_PointToAngle2(thing->x, thing->y, tmthing->x, tmthing->y)+ANGLE_90, 16*FRACUNIT); + + P_SpawnMobj(thing->x/2 + tmthing->x/2, thing->y/2 + tmthing->y/2, thing->z/2 + tmthing->z/2, MT_ITEMCLASH); } // Other Item Damage if (thing->eflags & MFE_VERTICALFLIP)