Fix external .lmp loading

This commit is contained in:
nillerusr 2022-02-11 11:00:57 +03:00
parent 9dd2d20e78
commit a1d8c59d01
2 changed files with 4 additions and 2 deletions

View File

@ -483,7 +483,8 @@ void CMapLoadHelper::Init( model_t *pMapModel, const char *loadname )
s_pMap = &g_ModelLoader.m_worldBrushData;
#if 0
// nillerusr: Fuck you johns
// XXX(johns): There are security issues with this system currently. sv_pure doesn't handle unexpected/mismatched
// lumps, so players can create lumps for maps not using them to wallhack/etc.. Currently unused,
// disabling until we have time to make a proper security pass.
@ -530,7 +531,6 @@ void CMapLoadHelper::Init( model_t *pMapModel, const char *loadname )
}
}
}
#endif
}
//-----------------------------------------------------------------------------

View File

@ -292,6 +292,7 @@ public:
MenuItem *item = new CGameMenuItem(this, itemName);
item->AddActionSignalTarget(target);
item->SetCommand(command);
item->SetProportional(true);
item->SetText(itemText);
item->SetUserData(userData);
return BaseClass::AddMenuItem(item);
@ -302,6 +303,7 @@ public:
MenuItem *item = new CGameMenuItem(this, itemName);
item->AddActionSignalTarget(target);
item->SetCommand(command);
item->SetProportional(true);
item->SetText(itemText);
item->SetUserData(userData);
return BaseClass::AddMenuItem(item);