mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Quicker, almost instantaneous Sealed Star conclusion after death
Also gets rid of the "wuu wuu wuu" sound from Competition that plays in this instance
This commit is contained in:
parent
15d744c4e3
commit
32eead29e5
1 changed files with 9 additions and 3 deletions
12
src/p_user.c
12
src/p_user.c
|
|
@ -1436,7 +1436,7 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
|
||||||
{
|
{
|
||||||
if (specialout == true)
|
if (specialout == true)
|
||||||
{
|
{
|
||||||
exitcountdown = TICRATE;
|
exitcountdown = 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -1498,7 +1498,8 @@ void P_DoAllPlayersExit(pflags_t flags, boolean trygivelife)
|
||||||
{
|
{
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
boolean givenlife = false;
|
boolean givenlife = false;
|
||||||
const boolean dofinishsound = (musiccountdown == 0);
|
boolean dofinishsound = (musiccountdown == 0);
|
||||||
|
boolean specialout = specialstageinfo.valid;
|
||||||
|
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
|
|
@ -1513,6 +1514,11 @@ void P_DoAllPlayersExit(pflags_t flags, boolean trygivelife)
|
||||||
|
|
||||||
P_DoPlayerExit(&players[i], flags);
|
P_DoPlayerExit(&players[i], flags);
|
||||||
|
|
||||||
|
if (specialout && K_IsPlayerLosing(&players[i]) == false)
|
||||||
|
{
|
||||||
|
specialout = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (trygivelife == false)
|
if (trygivelife == false)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -1522,7 +1528,7 @@ void P_DoAllPlayersExit(pflags_t flags, boolean trygivelife)
|
||||||
givenlife = true;
|
givenlife = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dofinishsound)
|
if (!dofinishsound || specialout)
|
||||||
{
|
{
|
||||||
// You've already finished, don't play again
|
// You've already finished, don't play again
|
||||||
;
|
;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue