Stop players bumping when they're reborn

This commit is contained in:
Sryder13 2017-11-11 01:17:42 +00:00
parent 8fbdbb4c64
commit d480ce24a9
1 changed files with 5 additions and 0 deletions

View File

@ -1050,6 +1050,11 @@ void K_KartBouncing(mobj_t *mobj1, mobj_t *mobj2, boolean bounce)
if (!mobj1 || !mobj2)
return;
// Don't bump when you're being reborn
if ((mobj1->player && mobj1->player->playerstate != PST_LIVE)
|| (mobj2->player && mobj2->player->playerstate != PST_LIVE))
return;
if (cv_collidesounds.value == 1)
{
S_StartSound(mobj1, cv_collidesoundnum.value);