Skip to content

Commit

Permalink
Randomly mirror rocket explosions
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 27, 2023
1 parent 5583b9d commit 3a5a61b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/p_mobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ void P_ExplodeMissile(mobj_t *mo)
{
mo->colfunc = tlcolfunc;
mo->flags2 &= ~MF2_CASTSHADOW;

if (M_BigRandom() & 1)
mo->flags2 |= MF2_MIRRORED;
}

if (mo->info->deathsound)
Expand Down

0 comments on commit 3a5a61b

Please sign in to comment.