mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Common: fix regression causing game modes not to work properly in retail mode
mp_gamemode's development flag added back in commit 3209af9a6c2509e5e6969199f5d9913b0ddb6ed0 as it was being set internally only previously, but we have to run it through cbuf in the following frame when we launch into the new map to allow the engine to apply it to all global states properly, to run it through cbuf the developmentonly flag needs to be removed from the cvar.
This commit is contained in:
parent
551840e6a3
commit
3f12f6f203
@ -272,6 +272,8 @@ void ConVar_InitShipped(void)
|
|||||||
base_tickinterval_sp->RemoveFlags(FCVAR_DEVELOPMENTONLY);
|
base_tickinterval_sp->RemoveFlags(FCVAR_DEVELOPMENTONLY);
|
||||||
base_tickinterval_mp->RemoveFlags(FCVAR_DEVELOPMENTONLY);
|
base_tickinterval_mp->RemoveFlags(FCVAR_DEVELOPMENTONLY);
|
||||||
|
|
||||||
|
mp_gamemode->RemoveFlags(FCVAR_DEVELOPMENTONLY);
|
||||||
|
|
||||||
// The base callback is for client builds only, must be replaced with the
|
// The base callback is for client builds only, must be replaced with the
|
||||||
// dedicated server variant as the original one runs this through
|
// dedicated server variant as the original one runs this through
|
||||||
// CEngineClient::SetupGamemode(). The callback is effectively the same
|
// CEngineClient::SetupGamemode(). The callback is effectively the same
|
||||||
|
Loading…
x
Reference in New Issue
Block a user