mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-19 07:51:19 +00:00
Stop players bumping when they're reborn
This commit is contained in:
parent
8fbdbb4c64
commit
d480ce24a9
1 changed files with 5 additions and 0 deletions
|
@ -1050,6 +1050,11 @@ void K_KartBouncing(mobj_t *mobj1, mobj_t *mobj2, boolean bounce)
|
||||||
if (!mobj1 || !mobj2)
|
if (!mobj1 || !mobj2)
|
||||||
return;
|
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)
|
if (cv_collidesounds.value == 1)
|
||||||
{
|
{
|
||||||
S_StartSound(mobj1, cv_collidesoundnum.value);
|
S_StartSound(mobj1, cv_collidesoundnum.value);
|
||||||
|
|
Loading…
Reference in a new issue