File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed
Client/mods/deathmatch/logic/luadefs Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -55,29 +55,7 @@ int CLuaColShapeDefs::GetColShapeType(lua_State* luaVM)
55
55
CLuaMain* pLuaMain = m_pLuaManager->GetVirtualMachine (luaVM);
56
56
if (pLuaMain)
57
57
{
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 ());
81
59
return 1 ;
82
60
}
83
61
}
You can’t perform that action at this time.
0 commit comments