mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 06:06:50 +00:00
Fix external .lmp loading
This commit is contained in:
parent
9dd2d20e78
commit
a1d8c59d01
@ -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
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user