mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Fix midrace joins being impossible when bots are present
This commit is contained in:
parent
c316924792
commit
2e4675b7f7
1 changed files with 3 additions and 6 deletions
|
|
@ -16351,10 +16351,8 @@ void K_CheckSpectateStatus(boolean considermapreset)
|
||||||
|
|
||||||
// Mid-race joins cause all kind of jank, including replay issues
|
// Mid-race joins cause all kind of jank, including replay issues
|
||||||
// that literally none of us can figure out. Whoops.
|
// that literally none of us can figure out. Whoops.
|
||||||
if (numingame < 2 || leveltime == 0)
|
if (numhumans > 1 && leveltime != 0)
|
||||||
continue;
|
return;
|
||||||
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Unseal when someone feels like debugging.
|
// Unseal when someone feels like debugging.
|
||||||
#if 0
|
#if 0
|
||||||
|
|
@ -16471,9 +16469,8 @@ void K_CheckSpectateStatus(boolean considermapreset)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Reset the match when 2P joins 1P, DUEL mode
|
// Reset the match when 2P joins 1P, DUEL mode
|
||||||
// Reset the match when 3P joins 1P and 2P, DUEL mode must be disabled
|
|
||||||
extern consvar_t cv_debugnewchallenger;
|
extern consvar_t cv_debugnewchallenger;
|
||||||
if (i > 0 && !mapreset && gamestate == GS_LEVEL && (previngame < 3 && numingame >= 2) && !cv_debugnewchallenger.value)
|
if (i > 0 && !mapreset && gamestate == GS_LEVEL && ((previngame < 3 && numingame >= 2) || (numhumans <= 2)) && !cv_debugnewchallenger.value)
|
||||||
{
|
{
|
||||||
Music_Play("comeon"); // COME ON
|
Music_Play("comeon"); // COME ON
|
||||||
mapreset = 3*TICRATE; // Even though only the server uses this for game logic, set for everyone for HUD
|
mapreset = 3*TICRATE; // Even though only the server uses this for game logic, set for everyone for HUD
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue