Set developer and cheats cvar when "Enable Cheats" is ticked

This is required for the in-game dev-menu to work.
This commit is contained in:
Kawe Mazidjatari 2022-09-25 22:20:32 +02:00
parent 926b410bce
commit b34446029b

View File

@ -748,7 +748,7 @@ eLaunchMode CUIBaseSurface::BuildParameter(string& svParameters)
if (this->m_CheatsToggle->Checked())
{
svParameters.append("+sv_cheats \"1\"\n");
svParameters.append("-dev\n");
svParameters.append("-showdevmenu\n");
}
@ -961,7 +961,7 @@ eLaunchMode CUIBaseSurface::BuildParameter(string& svParameters)
if (this->m_CheatsToggle->Checked())
{
svParameters.append("+sv_cheats \"1\"\n");
svParameters.append("-dev\n");
svParameters.append("-showdevmenu\n");
}