mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Keep player alive at zero bumpers
Player have one more hit point than number of bumpers. Break the Capsules gives zero bumpers.
This commit is contained in:
parent
f6c8dd655a
commit
f69d70043c
1 changed files with 3 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ UINT8 numtargets = 0; // Capsules busted
|
||||||
INT32 K_StartingBumperCount(void)
|
INT32 K_StartingBumperCount(void)
|
||||||
{
|
{
|
||||||
if (battlecapsules)
|
if (battlecapsules)
|
||||||
return 1; // always 1 hit in Break the Capsules
|
return 0; // always 1 hit in Break the Capsules
|
||||||
|
|
||||||
return cv_kartbumpers.value;
|
return cv_kartbumpers.value;
|
||||||
}
|
}
|
||||||
|
|
@ -827,10 +827,10 @@ UINT8 K_Bumpers(player_t *player)
|
||||||
return UINT8_MAX;
|
return UINT8_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
return player->mo->health;
|
return (player->mo->health - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
INT32 K_BumpersToHealth(UINT8 bumpers)
|
INT32 K_BumpersToHealth(UINT8 bumpers)
|
||||||
{
|
{
|
||||||
return bumpers;
|
return (bumpers + 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue