mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
TryRunTics: Handle deferred title/credits continue outside inner tic loop, don't bail outside of level gamestate
Fixes netxcmds not being processed locally in time to init rivals properly
This commit is contained in:
parent
32c43044cb
commit
3a8de19aa4
1 changed files with 9 additions and 15 deletions
|
|
@ -6150,6 +6150,13 @@ boolean TryRunTics(tic_t realtics)
|
||||||
|
|
||||||
ps_tictime = I_GetPreciseTime() - ps_tictime;
|
ps_tictime = I_GetPreciseTime() - ps_tictime;
|
||||||
|
|
||||||
|
// Leave a certain amount of tics present in the net buffer as long as we've ran at least one tic this frame.
|
||||||
|
if (client && gamestate == GS_LEVEL && leveltime > 1 && neededtic <= gametic + cv_netticbuffer.value)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (F_IsDeferredContinueCredits())
|
if (F_IsDeferredContinueCredits())
|
||||||
{
|
{
|
||||||
F_ContinueCredits();
|
F_ContinueCredits();
|
||||||
|
|
@ -6159,19 +6166,6 @@ boolean TryRunTics(tic_t realtics)
|
||||||
{
|
{
|
||||||
D_StartTitle();
|
D_StartTitle();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Leave a certain amount of tics present in the net buffer as long as we've ran at least one tic this frame.
|
|
||||||
if (client && gamestate == GS_LEVEL && leveltime > 1 && neededtic <= gametic + cv_netticbuffer.value)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// if we're no longer in a level state, just exit
|
|
||||||
if (!G_GamestateUsesLevel())
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue