mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Check to sting player before removing one ring
This commit is contained in:
parent
86991112b1
commit
07f965d4eb
1 changed files with 4 additions and 4 deletions
|
|
@ -537,24 +537,24 @@ boolean K_PvPTouchDamage(mobj_t *t1, mobj_t *t2)
|
||||||
|
|
||||||
if (t1Condition == true)
|
if (t1Condition == true)
|
||||||
{
|
{
|
||||||
P_PlayerRingBurst(t2->player, 1);
|
|
||||||
|
|
||||||
if (t2->player->rings <= 0)
|
if (t2->player->rings <= 0)
|
||||||
{
|
{
|
||||||
P_DamageMobj(t2, t1, t1, 1, DMG_STING);
|
P_DamageMobj(t2, t1, t1, 1, DMG_STING);
|
||||||
stung = true;
|
stung = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
P_PlayerRingBurst(t2->player, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t2Condition == true)
|
if (t2Condition == true)
|
||||||
{
|
{
|
||||||
P_PlayerRingBurst(t1->player, 1);
|
|
||||||
|
|
||||||
if (t1->player->rings <= 0)
|
if (t1->player->rings <= 0)
|
||||||
{
|
{
|
||||||
P_DamageMobj(t1, t2, t2, 1, DMG_STING);
|
P_DamageMobj(t1, t2, t2, 1, DMG_STING);
|
||||||
stung = true;
|
stung = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
P_PlayerRingBurst(t1->player, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return stung;
|
return stung;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue