Don't skip signature check steps if server is lagging

This commit is contained in:
AJ Martinez 2023-10-15 14:38:55 -07:00
parent 1e6ab6107e
commit dcaa1c3902
2 changed files with 7 additions and 0 deletions

View file

@ -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);

View file

@ -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();