Skip to content

Commit cfce778

Browse files
committed
Return colshape type ID client side
1 parent 0ce219a commit cfce778

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

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

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -55,29 +55,7 @@ int CLuaColShapeDefs::GetColShapeType(lua_State* luaVM)
5555
CLuaMain* pLuaMain = m_pLuaManager->GetVirtualMachine(luaVM);
5656
if (pLuaMain)
5757
{
58-
switch (pColShape->GetShapeType())
59-
{
60-
case 0:
61-
lua_pushstring(luaVM, "Circle");
62-
break;
63-
case 1:
64-
lua_pushstring(luaVM, "Cuboid");
65-
break;
66-
case 2:
67-
lua_pushstring(luaVM, "Sphere");
68-
break;
69-
case 3:
70-
lua_pushstring(luaVM, "Rectangle");
71-
break;
72-
case 4:
73-
lua_pushstring(luaVM, "Polygon");
74-
break;
75-
case 5:
76-
lua_pushstring(luaVM, "Tube");
77-
break;
78-
default:
79-
lua_pushboolean(luaVM, false);
80-
}
58+
lua_pushnumber(luaVM, pColShape->GetShapeType());
8159
return 1;
8260
}
8361
}

0 commit comments

Comments
 (0)