mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-04 02:55:50 +03:00
Micro optimization and report recursive shutdown by Sys_Error (#318)
* Micro optimization in CheckGore
This commit is contained in:
parent
fb3ec088e1
commit
105075e0f6
@ -1008,20 +1008,12 @@ int Host_Frame(float time, int iState, int *stateInfo)
|
|||||||
|
|
||||||
void CheckGore(void)
|
void CheckGore(void)
|
||||||
{
|
{
|
||||||
if (bLowViolenceBuild)
|
float fValue = bLowViolenceBuild ? 0.0f : 1.0f;
|
||||||
{
|
|
||||||
Cvar_SetValue("violence_hblood", 0.0);
|
Cvar_SetValue("violence_hblood", fValue);
|
||||||
Cvar_SetValue("violence_hgibs", 0.0);
|
Cvar_SetValue("violence_hgibs", fValue);
|
||||||
Cvar_SetValue("violence_ablood", 0.0);
|
Cvar_SetValue("violence_ablood", fValue);
|
||||||
Cvar_SetValue("violence_agibs", 0.0);
|
Cvar_SetValue("violence_agibs", fValue);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Cvar_SetValue("violence_hblood", 1.0);
|
|
||||||
Cvar_SetValue("violence_hgibs", 1.0);
|
|
||||||
Cvar_SetValue("violence_ablood", 1.0);
|
|
||||||
Cvar_SetValue("violence_agibs", 1.0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
qboolean Host_IsSinglePlayerGame(void)
|
qboolean Host_IsSinglePlayerGame(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user