Revert "- added a bit of hackery so that compatmode CVAR can be set up on startup"
This reverts commit c4408d8536.
This does not work. It always overwrites the saved compatibility settings with the current compatmode.
This commit is contained in:
parent
517e803b3e
commit
3fb292ac71
3 changed files with 6 additions and 10 deletions
|
|
@ -569,7 +569,6 @@ EXTERN_CVAR(Int, compatmode)
|
|||
|
||||
CUSTOM_CVAR (Int, compatflags, 0, CVAR_ARCHIVE|CVAR_SERVERINFO | CVAR_NOINITCALL)
|
||||
{
|
||||
if (FBaseCVar::m_inEnable) return;
|
||||
for (auto Level : AllLevels())
|
||||
{
|
||||
Level->ApplyCompatibility();
|
||||
|
|
@ -578,7 +577,6 @@ CUSTOM_CVAR (Int, compatflags, 0, CVAR_ARCHIVE|CVAR_SERVERINFO | CVAR_NOINITCALL
|
|||
|
||||
CUSTOM_CVAR (Int, compatflags2, 0, CVAR_ARCHIVE|CVAR_SERVERINFO | CVAR_NOINITCALL)
|
||||
{
|
||||
if (FBaseCVar::m_inEnable) return;
|
||||
for (auto Level : AllLevels())
|
||||
{
|
||||
Level->ApplyCompatibility2();
|
||||
|
|
@ -586,7 +584,7 @@ CUSTOM_CVAR (Int, compatflags2, 0, CVAR_ARCHIVE|CVAR_SERVERINFO | CVAR_NOINITCAL
|
|||
}
|
||||
}
|
||||
|
||||
CUSTOM_CVAR(Int, compatmode, 0, CVAR_ARCHIVE)
|
||||
CUSTOM_CVAR(Int, compatmode, 0, CVAR_ARCHIVE|CVAR_NOINITCALL)
|
||||
{
|
||||
int v, w = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue