Skip to content

Commit 134cbe6

Browse files
committed
Fix colshape Lua defs
1 parent cfce778 commit 134cbe6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ void CLuaColShapeDefs::AddClass(lua_State* luaVM)
3434
lua_classfunction(luaVM, "Polygon", "createColPolygon");
3535

3636
lua_classfunction(luaVM, "getElementsWithin", "getElementsWithinColShape");
37-
lua_classvariable(luaVM, "elementsWithin", NULL, "getElementsWithinColShape");
37+
lua_classfunction(luaVM, "getShapeType", "getColShapeType");
3838

39-
lua_classvariable(luaVM, "elementsWithin", NULL, "getElementsWithinColShape");
40-
lua_classvariable(luaVM, "shapeType", NULL, "getColShapeType");
39+
lua_classvariable(luaVM, "shapeType", nullptr, "getColShapeType");
4140

4241
lua_registerclass(luaVM, "ColShape", "Element");
4342
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
void CLuaColShapeDefs::LoadFunctions()
1515
{
16-
// Shape create funcs
17-
1816
CLuaCFunctions::AddFunction("createColCircle", CreateColCircle);
1917
CLuaCFunctions::AddFunction("createColCuboid", CreateColCuboid);
2018
CLuaCFunctions::AddFunction("createColSphere", CreateColSphere);
@@ -34,6 +32,7 @@ void CLuaColShapeDefs::AddClass(lua_State* luaVM)
3432
lua_classfunction(luaVM, "Sphere", "createColSphere");
3533
lua_classfunction(luaVM, "Tube", "createColTube");
3634
lua_classfunction(luaVM, "Polygon", "createColPolygon");
35+
3736
lua_classfunction(luaVM, "getElementsWithin", "getElementsWithinColShape");
3837
lua_classfunction(luaVM, "getShapeType", "getColShapeType");
3938

0 commit comments

Comments
 (0)