mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 05:11:34 +00:00
Removed Lua's access to subsector/linedef validcounts and camera viewheight/startangle, since they are all useless for Lua purposes
git-svn-id: https://code.orospakr.ca/svn/srb2/trunk@9040 6de4a73c-47e2-0310-b8c1-93d6ecd3f8cd
This commit is contained in:
parent
4aa0b7a2a8
commit
2d9d028bea
2 changed files with 0 additions and 20 deletions
|
@ -126,8 +126,6 @@ static const char *const widtht_opt[] = {
|
|||
enum cameraf {
|
||||
camera_chase = 0,
|
||||
camera_aiming,
|
||||
camera_viewheight,
|
||||
camera_startangle,
|
||||
camera_x,
|
||||
camera_y,
|
||||
camera_z,
|
||||
|
@ -146,8 +144,6 @@ enum cameraf {
|
|||
static const char *const camera_opt[] = {
|
||||
"chase",
|
||||
"aiming",
|
||||
"viewheight",
|
||||
"startangle",
|
||||
"x",
|
||||
"y",
|
||||
"z",
|
||||
|
@ -277,12 +273,6 @@ static int camera_get(lua_State *L)
|
|||
case camera_aiming:
|
||||
lua_pushinteger(L, cam->aiming);
|
||||
break;
|
||||
case camera_viewheight:
|
||||
lua_pushinteger(L, cam->viewheight);
|
||||
break;
|
||||
case camera_startangle:
|
||||
lua_pushinteger(L, cam->startangle);
|
||||
break;
|
||||
case camera_x:
|
||||
lua_pushinteger(L, cam->x);
|
||||
break;
|
||||
|
|
|
@ -60,7 +60,6 @@ enum subsector_e {
|
|||
subsector_sector,
|
||||
subsector_numlines,
|
||||
subsector_firstline,
|
||||
subsector_validcount
|
||||
};
|
||||
|
||||
static const char *const subsector_opt[] = {
|
||||
|
@ -68,7 +67,6 @@ static const char *const subsector_opt[] = {
|
|||
"sector",
|
||||
"numlines",
|
||||
"firstline",
|
||||
"validcount",
|
||||
NULL};
|
||||
|
||||
enum line_e {
|
||||
|
@ -86,7 +84,6 @@ enum line_e {
|
|||
line_slopetype,
|
||||
line_frontsector,
|
||||
line_backsector,
|
||||
line_validcount,
|
||||
line_firsttag,
|
||||
line_nexttag,
|
||||
line_text,
|
||||
|
@ -108,7 +105,6 @@ static const char *const line_opt[] = {
|
|||
"slopetype",
|
||||
"frontsector",
|
||||
"backsector",
|
||||
"validcount",
|
||||
"firsttag",
|
||||
"nexttag",
|
||||
"text",
|
||||
|
@ -476,9 +472,6 @@ static int subsector_get(lua_State *L)
|
|||
case subsector_firstline:
|
||||
lua_pushinteger(L, subsector->firstline);
|
||||
return 1;
|
||||
case subsector_validcount:
|
||||
lua_pushinteger(L, subsector->validcount);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -564,9 +557,6 @@ static int line_get(lua_State *L)
|
|||
case line_backsector:
|
||||
LUA_PushUserdata(L, line->backsector, META_SECTOR);
|
||||
return 1;
|
||||
case line_validcount:
|
||||
lua_pushinteger(L, line->validcount);
|
||||
return 1;
|
||||
case line_firsttag:
|
||||
lua_pushinteger(L, line->firsttag);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue