| 706 | // |
| 707 | |
| 708 | int LuaObstacle::GetFaceBaseTeam(lua_State* L) { |
| 709 | const MeshFace* face = ParseMeshFace(L, 1); |
| 710 | if (face == NULL) { |
| 711 | return luaL_pushnil(L); |
| 712 | } |
| 713 | const int team = face->getBaseTeam(); |
| 714 | if (team < 0) { |
| 715 | return luaL_pushnil(L); |
| 716 | } |
| 717 | lua_pushinteger(L, team); |
| 718 | return 1; |
| 719 | } |
| 720 | |
| 721 | |
| 722 | int LuaObstacle::GetFaceLinkName(lua_State* L) { |
nothing calls this directly
no test coverage detected