mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 10:51:42 +00:00
Ignore no-contest antigrief if no humans left
Allows all-bots races to continue to intermission and advance to next level. Fixes KartKrew/Kart#1018
This commit is contained in:
parent
793e56b66d
commit
d917a7f394
1 changed files with 2 additions and 2 deletions
|
|
@ -1505,7 +1505,7 @@ boolean P_CheckRacers(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (griefed == true)
|
if (griefed == true && numHumans > 0)
|
||||||
{
|
{
|
||||||
// Don't do this if someone spectated
|
// Don't do this if someone spectated
|
||||||
eliminateLast = false;
|
eliminateLast = false;
|
||||||
|
|
@ -2503,7 +2503,7 @@ static boolean P_KillPlayer(player_t *player, mobj_t *inflictor, mobj_t *source,
|
||||||
if (gametyperules & (GTR_BUMPERS|GTR_CHECKPOINTS))
|
if (gametyperules & (GTR_BUMPERS|GTR_CHECKPOINTS))
|
||||||
{
|
{
|
||||||
if ((player->pitblame > -1) && (player->pitblame < MAXPLAYERS)
|
if ((player->pitblame > -1) && (player->pitblame < MAXPLAYERS)
|
||||||
&& (playeringame[player->pitblame]) && (!players[player->pitblame].spectator)
|
&& (playeringame[player->pitblame]) && (!players[player->pitblame].spectator)
|
||||||
&& (players[player->pitblame].mo) && (!P_MobjWasRemoved(players[player->pitblame].mo)))
|
&& (players[player->pitblame].mo) && (!P_MobjWasRemoved(players[player->pitblame].mo)))
|
||||||
{
|
{
|
||||||
P_DamageMobj(player->mo, players[player->pitblame].mo, players[player->pitblame].mo, 1, DMG_KARMA);
|
P_DamageMobj(player->mo, players[player->pitblame].mo, players[player->pitblame].mo, 1, DMG_KARMA);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue