Skip to content

Commit 5110559

Browse files
committed
Fix #1240 for getElementBoundingBox
1 parent c0ef9f4 commit 5110559

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

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

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "StdInc.h"
1414
using std::list;
15-
#define MIN_CLIENT_REQ_GETBOUNDINGBOX_OOP "1.5.5-9.13999"
1615

1716
void CLuaElementDefs::LoadFunctions()
1817
{
@@ -1036,22 +1035,9 @@ int CLuaElementDefs::OOP_GetElementBoundingBox(lua_State* luaVM)
10361035
CVector vecMin, vecMax;
10371036
if (CStaticFunctionDefinitions::GetElementBoundingBox(*pEntity, vecMin, vecMax))
10381037
{
1039-
if (!MinClientReqCheck(argStream, MIN_CLIENT_REQ_GETBOUNDINGBOX_OOP))
1040-
{
1041-
lua_pushnumber(luaVM, vecMin.fX);
1042-
lua_pushnumber(luaVM, vecMin.fY);
1043-
lua_pushnumber(luaVM, vecMin.fZ);
1044-
lua_pushnumber(luaVM, vecMax.fX);
1045-
lua_pushnumber(luaVM, vecMax.fY);
1046-
lua_pushnumber(luaVM, vecMax.fZ);
1047-
return 6;
1048-
}
1049-
else
1050-
{
1051-
lua_pushvector(luaVM, vecMin);
1052-
lua_pushvector(luaVM, vecMax);
1053-
return 2;
1054-
}
1038+
lua_pushvector(luaVM, vecMin);
1039+
lua_pushvector(luaVM, vecMax);
1040+
return 2;
10551041
}
10561042
}
10571043
else

0 commit comments

Comments
 (0)