Skip to content

Commit 25e07c4

Browse files
committed
Remove remaining minimum client checks
1 parent 764f5ab commit 25e07c4

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <lua/CLuaFunctionParser.h>
1515
using std::list;
1616

17-
#define MIN_CLIENT_REQ_LOD_FOR_BUILDING "1.6.0-9.22470"
18-
1917
void CLuaElementDefs::LoadFunctions()
2018
{
2119
constexpr static const std::pair<const char*, lua_CFunction> functions[]{
@@ -2513,10 +2511,6 @@ int CLuaElementDefs::GetLowLodElement(lua_State* luaVM)
25132511
bool CLuaElementDefs::SetLowLodElement(lua_State* luaVM, CClientEntity* pEntity, std::optional<CClientEntity*> pLowLodEntity)
25142512
{
25152513
// bool setLowLODElement ( element theElement [, element lowLowElement ] )
2516-
2517-
if (pEntity->GetType() == CCLIENTBUILDING)
2518-
MinClientReqCheck(luaVM, MIN_CLIENT_REQ_LOD_FOR_BUILDING, "target is building");
2519-
25202514
return CStaticFunctionDefinitions::SetLowLodElement(*pEntity, pLowLodEntity.value_or(nullptr));
25212515
}
25222516

Server/mods/deathmatch/logic/CBuilding.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
class CBuildingManager;
2121

22-
#define SERVERSIDE_BUILDING_MIN_CLIENT_VERSION "1.6.0-9.22824"
23-
2422
class CBuilding final : public CElement
2523
{
2624
friend class CPlayer;

Server/mods/deathmatch/logic/CResourceMapItem.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,6 @@ void CResourceMapItem::HandleNode(CXMLNode& Node, CElement* pParent)
192192
}
193193
case CElement::BUILDING:
194194
{
195-
const CMtaVersion& minClientVersion = m_resource->GetMinClientFromMetaXml();
196-
197-
if (minClientVersion < CMtaVersion(SERVERSIDE_BUILDING_MIN_CLIENT_VERSION))
198-
{
199-
CLogger::LogPrintf("Resource %s should have client min_mta_version higher or equal than %s\n", m_resource->GetName().c_str(),
200-
SERVERSIDE_BUILDING_MIN_CLIENT_VERSION);
201-
break;
202-
}
203-
204195
pNode = m_pBuildingManager->CreateFromXML(pParent, Node, m_pEvents);
205196
break;
206197
}

Server/mods/deathmatch/logic/luadefs/CLuaBuildingDefs.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ CBuilding* CLuaBuildingDefs::CreateBuilding(lua_State* const luaVM, std::uint16_
4545
if (!pResource)
4646
throw std::logic_error("Cannot be done in current environment");
4747

48-
const CMtaVersion& minClientVersion = pResource->GetMinClientFromMetaXml();
49-
50-
if (minClientVersion < CMtaVersion(SERVERSIDE_BUILDING_MIN_CLIENT_VERSION))
51-
throw std::logic_error("Expected client min_mta_version in meta.xml hinger or equal than " SERVERSIDE_BUILDING_MIN_CLIENT_VERSION);
52-
5348
if (!CBuildingManager::IsValidModel(modelId))
5449
throw std::invalid_argument("Invalid building model id");
5550

0 commit comments

Comments
 (0)