Skip to content

Commit caec9d7

Browse files
del getObjectCustomLowLODModel
1 parent 4225df7 commit caec9d7

File tree

4 files changed

+0
-17
lines changed

4 files changed

+0
-17
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaObjectDefs.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ void CLuaObjectDefs::LoadFunctions()
4444
{"getObjectLowLODModel", ArgumentParser<GetObjectLowLODModel>},
4545
{"getObjectHighLODModel", ArgumentParser<GetObjectHighLODModel>},
4646
{"setObjectCustomLowLODModel", ArgumentParser<SetObjectCustomLowLODModel>},
47-
{"getObjectCustomLowLODModel", ArgumentParser<GetObjectCustomLowLODModel>},
4847
{"resetObjectCustomLowLODModel", ArgumentParser<ResetObjectCustomLowLODModel>},
4948
{"resetAllObjectCustomLowLODModels", ArgumentParser<ResetAllObjectCustomLowLODModels>},
5049
};
@@ -752,14 +751,6 @@ void CLuaObjectDefs::SetObjectCustomLowLODModel(std::uint32_t hLODModel, std::ui
752751
CLodModels::SetObjectCustomLowLODModel(hLODModel, lLODModel);
753752
}
754753

755-
std::variant<bool, std::uint32_t> CLuaObjectDefs::GetObjectCustomLowLODModel(std::uint32_t hLODModel) noexcept
756-
{
757-
std::uint32_t lLODModel = CLodModels::GetObjectCustomLowLODModel(hLODModel);
758-
if (lLODModel == 0) // Custom LLOD Model not found for HLOD Model provided
759-
return false;
760-
return lLODModel;
761-
}
762-
763754
void CLuaObjectDefs::ResetObjectCustomLowLODModel(std::uint32_t hLODModel) noexcept
764755
{
765756
CLodModels::ResetObjectCustomLowLODModel(hLODModel);

Client/mods/deathmatch/logic/luadefs/CLuaObjectDefs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class CLuaObjectDefs : public CLuaDefs
4848
static std::variant<bool, std::uint32_t> GetObjectLowLODModel(std::uint32_t hLODModel) noexcept;
4949
static std::variant<bool, std::uint32_t> GetObjectHighLODModel(std::uint32_t lLODModel) noexcept;
5050
static void SetObjectCustomLowLODModel(std::uint32_t hLODModel, std::uint32_t lLODModel) noexcept;
51-
static std::variant<bool, std::uint32_t> GetObjectCustomLowLODModel(std::uint32_t hLODModel) noexcept;
5251
static void ResetObjectCustomLowLODModel(std::uint32_t hLODModel) noexcept;
5352
static void ResetAllObjectCustomLowLODModels() noexcept;
5453
};

Shared/mods/deathmatch/logic/CLodModels.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4344,12 +4344,6 @@ void CLodModels::SetObjectCustomLowLODModel(std::uint32_t hLODModel, std::uint32
43444344
CLodModels::m_customLODModels[hLODModel] = lLODModel;
43454345
}
43464346

4347-
std::uint32_t CLodModels::GetObjectCustomLowLODModel(std::uint32_t hLODModel) noexcept
4348-
{
4349-
auto it = CLodModels::m_customLODModels.find(hLODModel);
4350-
return (it != CLodModels::m_customLODModels.end()) ? it->second : 0;
4351-
}
4352-
43534347
void CLodModels::ResetObjectCustomLowLODModel(std::uint32_t hLODModel) noexcept
43544348
{
43554349
CLodModels::m_customLODModels.erase(hLODModel);

Shared/mods/deathmatch/logic/CLodModels.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class CLodModels
1919
static std::uint32_t GetObjectHighLODModel(std::uint32_t lLODModel) noexcept;
2020

2121
static void SetObjectCustomLowLODModel(std::uint32_t hLODModel, std::uint32_t lLODModel) noexcept;
22-
static std::uint32_t GetObjectCustomLowLODModel(std::uint32_t hLODModel) noexcept;
2322
static void ResetObjectCustomLowLODModel(std::uint32_t hLODModel) noexcept;
2423
static void ResetAllObjectCustomLowLODModels() noexcept;
2524

0 commit comments

Comments
 (0)