mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Don't bump while flashing
This commit is contained in:
parent
9d51ef8e82
commit
a3cd131017
1 changed files with 15 additions and 0 deletions
15
src/k_kart.c
15
src/k_kart.c
|
@ -1068,6 +1068,21 @@ void K_KartBouncing(mobj_t *mobj1, mobj_t *mobj2, boolean bounce, boolean solid)
|
||||||
|| (mobj2->player && mobj2->player->kartstuff[k_respawn]))
|
|| (mobj2->player && mobj2->player->kartstuff[k_respawn]))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Don't bump if you're flashing
|
||||||
|
if (mobj1->player && mobj1->player->powers[pw_flashing] > 0
|
||||||
|
&& mobj1->player->powers[pw_flashing] < K_GetKartFlashing(mobj1->player)-1)
|
||||||
|
{
|
||||||
|
mobj1->player->powers[pw_flashing]++;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mobj2->player && mobj2->player->powers[pw_flashing] > 0
|
||||||
|
&& mobj2->player->powers[pw_flashing] < K_GetKartFlashing(mobj2->player)-1)
|
||||||
|
{
|
||||||
|
mobj2->player->powers[pw_flashing]++;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Don't bump if you've recently bumped
|
// Don't bump if you've recently bumped
|
||||||
if (mobj1->player && mobj1->player->kartstuff[k_justbumped])
|
if (mobj1->player && mobj1->player->kartstuff[k_justbumped])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue