mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-17 17:17:56 +03:00
SetCStrikeFlags once on server start
This commit is contained in:
parent
bff0dfd7b4
commit
2ab8b1f884
@ -458,8 +458,9 @@ void Cmd_Alias_f(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetCStrikeFlags(); // TODO: Do this once somewhere at the server start
|
#ifndef REHLDS_FIXES
|
||||||
|
SetCStrikeFlags(); // DONE: Do this once somewhere at the server start
|
||||||
|
#endif
|
||||||
if ((g_bIsCStrike || g_bIsCZero) &&
|
if ((g_bIsCStrike || g_bIsCZero) &&
|
||||||
(!Q_stricmp(s, "cl_autobuy")
|
(!Q_stricmp(s, "cl_autobuy")
|
||||||
|| !Q_stricmp(s, "cl_rebuy")
|
|| !Q_stricmp(s, "cl_rebuy")
|
||||||
|
@ -310,8 +310,9 @@ model_t *Mod_LoadModel(model_t *mod, qboolean crash, qboolean trackCRC)
|
|||||||
{
|
{
|
||||||
p->firstCRCDone = 1;
|
p->firstCRCDone = 1;
|
||||||
p->initialCRC = currentCRC;
|
p->initialCRC = currentCRC;
|
||||||
|
#ifndef REHLDS_FIXES
|
||||||
SetCStrikeFlags();
|
SetCStrikeFlags();
|
||||||
|
#endif
|
||||||
if (!IsGameSubscribed("czero") && g_bIsCStrike && IsCZPlayerModel(currentCRC, mod->name) && g_pcls.state)
|
if (!IsGameSubscribed("czero") && g_bIsCStrike && IsCZPlayerModel(currentCRC, mod->name) && g_pcls.state)
|
||||||
{
|
{
|
||||||
COM_ExplainDisconnection(TRUE, "Cannot continue with altered model %s, disconnecting.", mod->name);
|
COM_ExplainDisconnection(TRUE, "Cannot continue with altered model %s, disconnecting.", mod->name);
|
||||||
|
@ -5746,7 +5746,9 @@ void EXT_FUNC SV_ActivateServer_internal(int runPhysics)
|
|||||||
msg.cursize = 0;
|
msg.cursize = 0;
|
||||||
msg.flags = SIZEBUF_CHECK_OVERFLOW;
|
msg.flags = SIZEBUF_CHECK_OVERFLOW;
|
||||||
|
|
||||||
|
#ifndef REHLDS_FIXES
|
||||||
SetCStrikeFlags();
|
SetCStrikeFlags();
|
||||||
|
#endif
|
||||||
Cvar_Set("sv_newunit", "0");
|
Cvar_Set("sv_newunit", "0");
|
||||||
|
|
||||||
ContinueLoadingProgressBar("Server", 8, 0.0f);
|
ContinueLoadingProgressBar("Server", 8, 0.0f);
|
||||||
|
@ -699,6 +699,9 @@ bool CDedicatedServerAPI::Init_noVirt(char *basedir, char *cmdline, CreateInterf
|
|||||||
Q_snprintf(text, ARRAYSIZE(text), "exec %s\n", servercfgfile.string);
|
Q_snprintf(text, ARRAYSIZE(text), "exec %s\n", servercfgfile.string);
|
||||||
text[255] = 0;
|
text[255] = 0;
|
||||||
Cbuf_InsertText(text);
|
Cbuf_InsertText(text);
|
||||||
|
#ifdef REHLDS_FIXES // DONE: Set cstrike flags on server start
|
||||||
|
SetCStrikeFlags();
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user