mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-27 15:02:06 +00:00
chore: do not make filename constants separate variables
This commit is contained in:
@@ -717,8 +717,7 @@ namespace BSP
|
||||
gfxWorld.outdoorLookupMatrix[3].z = zScale;
|
||||
gfxWorld.outdoorLookupMatrix[3].w = 1.0f;
|
||||
|
||||
const std::string outdoorImageName = std::string("$outdoor");
|
||||
auto outdoorImageAsset = m_context.LoadDependency<AssetImage>(outdoorImageName);
|
||||
const auto outdoorImageAsset = m_context.LoadDependency<AssetImage>("$outdoor");
|
||||
if (!outdoorImageAsset)
|
||||
{
|
||||
con::error("ERROR! unable to find outdoor image $outdoor!");
|
||||
|
||||
@@ -79,8 +79,7 @@ namespace BSP
|
||||
try
|
||||
{
|
||||
json entJs;
|
||||
std::string entityFileName = "entities.json";
|
||||
std::string entityFilePath = BSPUtil::getFileNameForBSPAsset(entityFileName);
|
||||
const auto entityFilePath = BSPUtil::getFileNameForBSPAsset("entities.json");
|
||||
const auto entFile = m_search_path.Open(entityFilePath);
|
||||
if (!entFile.IsOpen())
|
||||
{
|
||||
@@ -96,8 +95,7 @@ namespace BSP
|
||||
return nullptr;
|
||||
|
||||
json spawnJs;
|
||||
std::string spawnFileName = "spawns.json";
|
||||
std::string spawnFilePath = BSPUtil::getFileNameForBSPAsset(spawnFileName);
|
||||
const auto spawnFilePath = BSPUtil::getFileNameForBSPAsset("spawns.json");
|
||||
const auto spawnFile = m_search_path.Open(spawnFilePath);
|
||||
if (!spawnFile.IsOpen())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user