[ModList] Do not initialize when running as a dedicated server
This commit is contained in:
parent
437ee48f8f
commit
6d151f7707
@ -90,6 +90,8 @@ namespace Components
|
|||||||
|
|
||||||
ModList::ModList()
|
ModList::ModList()
|
||||||
{
|
{
|
||||||
|
if (Dedicated::Dedicated::IsEnabled()) return;
|
||||||
|
|
||||||
ModList::CurrentMod = 0;
|
ModList::CurrentMod = 0;
|
||||||
Dvar::Register("cl_modVidRestart", true, Game::dvar_flag::DVAR_FLAG_SAVED, "Perform a vid_restart when loading a mod.");
|
Dvar::Register("cl_modVidRestart", true, Game::dvar_flag::DVAR_FLAG_SAVED, "Perform a vid_restart when loading a mod.");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user