[IMapEnts] Use IW4C if available
This commit is contained in:
parent
aafa121ff1
commit
6e689766df
@ -15,6 +15,10 @@ namespace Assets
|
||||
Game::MapEnts* orgEnts = Components::AssetHandler::FindOriginalAsset(this->getType(), name.data()).mapEnts;
|
||||
|
||||
// TODO: Get rid of that
|
||||
if (!orgEnts)
|
||||
{
|
||||
orgEnts = Components::AssetHandler::FindOriginalAsset(Game::XAssetType::ASSET_TYPE_MAP_ENTS, "maps/iw4_credits.d3dbsp").mapEnts;
|
||||
|
||||
if (!orgEnts)
|
||||
{
|
||||
Game::DB_EnumXAssets(Game::XAssetType::ASSET_TYPE_MAP_ENTS, [](Game::XAssetHeader header, void* mapEnts)
|
||||
@ -25,6 +29,7 @@ namespace Assets
|
||||
}
|
||||
}, &orgEnts, false);
|
||||
}
|
||||
}
|
||||
|
||||
if (orgEnts)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user