engine: add missing HPAK_CheckSize/Integrity calls
This commit is contained in:
parent
cee3757e6f
commit
c24a1fafc5
3 changed files with 7 additions and 0 deletions
|
@ -851,6 +851,8 @@ void CL_ParseServerData( sizebuf_t *msg, qboolean legacy )
|
|||
qboolean background;
|
||||
int i;
|
||||
|
||||
HPAK_CheckSize( CUSTOM_RES_PATH );
|
||||
|
||||
Con_Reportf( "%s packet received.\n", legacy ? "Legacy serverdata" : "Serverdata" );
|
||||
|
||||
cls.timestart = Sys_DoubleTime();
|
||||
|
|
|
@ -1213,6 +1213,8 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa
|
|||
}
|
||||
else Cmd_AddRestrictedCommand( "minimize", Host_Minimize_f, "minimize main window to tray" );
|
||||
|
||||
HPAK_CheckIntegrity( CUSTOM_RES_PATH );
|
||||
|
||||
host.errorframe = 0;
|
||||
|
||||
// post initializations
|
||||
|
|
|
@ -945,6 +945,9 @@ qboolean SV_SpawnServer( const char *mapname, const char *startspot, qboolean ba
|
|||
current_skill = bound( 0, current_skill, 3 );
|
||||
Cvar_SetValue( "skill", (float)current_skill );
|
||||
|
||||
// enforce hpk_maxsize
|
||||
HPAK_CheckSize( CUSTOM_RES_PATH );
|
||||
|
||||
// force normal player collisions for single player
|
||||
if( svs.maxclients == 1 )
|
||||
Cvar_SetValue( "sv_clienttrace", 1 );
|
||||
|
|
Loading…
Add table
Reference in a new issue