Skip to content

Commit 88379b8

Browse files
committed
Fix #1240 for getVehicleComponentPosition/Rotation
1 parent 5110559 commit 88379b8

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include "StdInc.h"
1313
#include "lua/CLuaFunctionParser.h"
1414

15-
#define MIN_CLIENT_REQ_GETVEHICLECOMPONENT_OOP "1.5.5-9.11710"
16-
1715
void CLuaVehicleDefs::LoadFunctions()
1816
{
1917
constexpr static const std::pair<const char*, lua_CFunction> functions[]{
@@ -3241,13 +3239,6 @@ int CLuaVehicleDefs::OOP_GetVehicleComponentPosition(lua_State* luaVM)
32413239
CVector vecPosition;
32423240
if (pVehicle->GetComponentPosition(strComponent, vecPosition, outputBase))
32433241
{
3244-
if (!MinClientReqCheck(argStream, MIN_CLIENT_REQ_GETVEHICLECOMPONENT_OOP))
3245-
{
3246-
lua_pushnumber(luaVM, vecPosition.fX);
3247-
lua_pushnumber(luaVM, vecPosition.fY);
3248-
lua_pushnumber(luaVM, vecPosition.fZ);
3249-
return 3;
3250-
}
32513242
lua_pushvector(luaVM, vecPosition);
32523243
return 1;
32533244
}
@@ -3339,13 +3330,6 @@ int CLuaVehicleDefs::OOP_GetVehicleComponentRotation(lua_State* luaVM)
33393330
{
33403331
// Script uses degrees
33413332
ConvertRadiansToDegrees(vecRotation);
3342-
if (!MinClientReqCheck(argStream, MIN_CLIENT_REQ_GETVEHICLECOMPONENT_OOP))
3343-
{
3344-
lua_pushnumber(luaVM, vecRotation.fX);
3345-
lua_pushnumber(luaVM, vecRotation.fY);
3346-
lua_pushnumber(luaVM, vecRotation.fZ);
3347-
return 3;
3348-
}
33493333
lua_pushvector(luaVM, vecRotation);
33503334
return 1;
33513335
}

0 commit comments

Comments
 (0)