mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-01 01:34:17 +00:00
engine: add missing HPAK_CheckSize/Integrity calls
This commit is contained in:
parent
cee3757e6f
commit
c24a1fafc5
@ -851,6 +851,8 @@ void CL_ParseServerData( sizebuf_t *msg, qboolean legacy )
|
|||||||
qboolean background;
|
qboolean background;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
HPAK_CheckSize( CUSTOM_RES_PATH );
|
||||||
|
|
||||||
Con_Reportf( "%s packet received.\n", legacy ? "Legacy serverdata" : "Serverdata" );
|
Con_Reportf( "%s packet received.\n", legacy ? "Legacy serverdata" : "Serverdata" );
|
||||||
|
|
||||||
cls.timestart = Sys_DoubleTime();
|
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" );
|
else Cmd_AddRestrictedCommand( "minimize", Host_Minimize_f, "minimize main window to tray" );
|
||||||
|
|
||||||
|
HPAK_CheckIntegrity( CUSTOM_RES_PATH );
|
||||||
|
|
||||||
host.errorframe = 0;
|
host.errorframe = 0;
|
||||||
|
|
||||||
// post initializations
|
// post initializations
|
||||||
|
@ -945,6 +945,9 @@ qboolean SV_SpawnServer( const char *mapname, const char *startspot, qboolean ba
|
|||||||
current_skill = bound( 0, current_skill, 3 );
|
current_skill = bound( 0, current_skill, 3 );
|
||||||
Cvar_SetValue( "skill", (float)current_skill );
|
Cvar_SetValue( "skill", (float)current_skill );
|
||||||
|
|
||||||
|
// enforce hpk_maxsize
|
||||||
|
HPAK_CheckSize( CUSTOM_RES_PATH );
|
||||||
|
|
||||||
// force normal player collisions for single player
|
// force normal player collisions for single player
|
||||||
if( svs.maxclients == 1 )
|
if( svs.maxclients == 1 )
|
||||||
Cvar_SetValue( "sv_clienttrace", 1 );
|
Cvar_SetValue( "sv_clienttrace", 1 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user