mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'robust-sigcheck' into 'master'
Don't skip signature check steps if server is lagging (resolves #715) Closes #715 See merge request KartKrew/Kart!1554
This commit is contained in:
commit
9847acc49c
3 changed files with 9 additions and 4 deletions
|
|
@ -6479,7 +6479,7 @@ static void CheckPresentPlayers(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle "client-to-client" auth challenge flow.
|
// Handle "client-to-client" auth challenge flow.
|
||||||
static void UpdateChallenges(void)
|
void UpdateChallenges(void)
|
||||||
{
|
{
|
||||||
if (!(Playing() && netgame))
|
if (!(Playing() && netgame))
|
||||||
return;
|
return;
|
||||||
|
|
@ -6498,7 +6498,7 @@ static void UpdateChallenges(void)
|
||||||
}
|
}
|
||||||
else // client
|
else // client
|
||||||
{
|
{
|
||||||
if (leveltime <= CHALLENGEALL_START)
|
if (leveltime < CHALLENGEALL_START)
|
||||||
expectChallenge = true;
|
expectChallenge = true;
|
||||||
|
|
||||||
if (leveltime == CHALLENGEALL_START)
|
if (leveltime == CHALLENGEALL_START)
|
||||||
|
|
@ -6660,8 +6660,6 @@ void NetUpdate(void)
|
||||||
|
|
||||||
UpdatePingTable();
|
UpdatePingTable();
|
||||||
|
|
||||||
UpdateChallenges();
|
|
||||||
|
|
||||||
if (client)
|
if (client)
|
||||||
maketic = neededtic;
|
maketic = neededtic;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -620,6 +620,9 @@ void CL_TimeoutServerList(void);
|
||||||
// Is there a game running
|
// Is there a game running
|
||||||
boolean Playing(void);
|
boolean Playing(void);
|
||||||
|
|
||||||
|
// Advance client-to-client pubkey verification flow
|
||||||
|
void UpdateChallenges(void);
|
||||||
|
|
||||||
// Broadcasts special packets to other players
|
// Broadcasts special packets to other players
|
||||||
// to notify of game exit
|
// to notify of game exit
|
||||||
void D_QuitNetGame(void);
|
void D_QuitNetGame(void);
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
#include "i_video.h" // rendermode
|
#include "i_video.h" // rendermode
|
||||||
#include "r_main.h"
|
#include "r_main.h"
|
||||||
#include "r_fps.h"
|
#include "r_fps.h"
|
||||||
|
#include "d_clisrv.h" // UpdateChallenges
|
||||||
|
|
||||||
// Object place
|
// Object place
|
||||||
#include "m_cheat.h"
|
#include "m_cheat.h"
|
||||||
|
|
@ -966,6 +967,9 @@ void P_Ticker(boolean run)
|
||||||
ps_lua_thinkframe_time = I_GetPreciseTime() - ps_lua_thinkframe_time;
|
ps_lua_thinkframe_time = I_GetPreciseTime() - ps_lua_thinkframe_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (run)
|
||||||
|
UpdateChallenges();
|
||||||
|
|
||||||
// Run shield positioning
|
// Run shield positioning
|
||||||
P_RunOverlays();
|
P_RunOverlays();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue