mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +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 {
|
enum cameraf {
|
||||||
camera_chase = 0,
|
camera_chase = 0,
|
||||||
camera_aiming,
|
camera_aiming,
|
||||||
camera_viewheight,
|
|
||||||
camera_startangle,
|
|
||||||
camera_x,
|
camera_x,
|
||||||
camera_y,
|
camera_y,
|
||||||
camera_z,
|
camera_z,
|
||||||
|
@ -146,8 +144,6 @@ enum cameraf {
|
||||||
static const char *const camera_opt[] = {
|
static const char *const camera_opt[] = {
|
||||||
"chase",
|
"chase",
|
||||||
"aiming",
|
"aiming",
|
||||||
"viewheight",
|
|
||||||
"startangle",
|
|
||||||
"x",
|
"x",
|
||||||
"y",
|
"y",
|
||||||
"z",
|
"z",
|
||||||
|
@ -277,12 +273,6 @@ static int camera_get(lua_State *L)
|
||||||
case camera_aiming:
|
case camera_aiming:
|
||||||
lua_pushinteger(L, cam->aiming);
|
lua_pushinteger(L, cam->aiming);
|
||||||
break;
|
break;
|
||||||
case camera_viewheight:
|
|
||||||
lua_pushinteger(L, cam->viewheight);
|
|
||||||
break;
|
|
||||||
case camera_startangle:
|
|
||||||
lua_pushinteger(L, cam->startangle);
|
|
||||||
break;
|
|
||||||
case camera_x:
|
case camera_x:
|
||||||
lua_pushinteger(L, cam->x);
|
lua_pushinteger(L, cam->x);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -60,7 +60,6 @@ enum subsector_e {
|
||||||
subsector_sector,
|
subsector_sector,
|
||||||
subsector_numlines,
|
subsector_numlines,
|
||||||
subsector_firstline,
|
subsector_firstline,
|
||||||
subsector_validcount
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *const subsector_opt[] = {
|
static const char *const subsector_opt[] = {
|
||||||
|
@ -68,7 +67,6 @@ static const char *const subsector_opt[] = {
|
||||||
"sector",
|
"sector",
|
||||||
"numlines",
|
"numlines",
|
||||||
"firstline",
|
"firstline",
|
||||||
"validcount",
|
|
||||||
NULL};
|
NULL};
|
||||||
|
|
||||||
enum line_e {
|
enum line_e {
|
||||||
|
@ -86,7 +84,6 @@ enum line_e {
|
||||||
line_slopetype,
|
line_slopetype,
|
||||||
line_frontsector,
|
line_frontsector,
|
||||||
line_backsector,
|
line_backsector,
|
||||||
line_validcount,
|
|
||||||
line_firsttag,
|
line_firsttag,
|
||||||
line_nexttag,
|
line_nexttag,
|
||||||
line_text,
|
line_text,
|
||||||
|
@ -108,7 +105,6 @@ static const char *const line_opt[] = {
|
||||||
"slopetype",
|
"slopetype",
|
||||||
"frontsector",
|
"frontsector",
|
||||||
"backsector",
|
"backsector",
|
||||||
"validcount",
|
|
||||||
"firsttag",
|
"firsttag",
|
||||||
"nexttag",
|
"nexttag",
|
||||||
"text",
|
"text",
|
||||||
|
@ -476,9 +472,6 @@ static int subsector_get(lua_State *L)
|
||||||
case subsector_firstline:
|
case subsector_firstline:
|
||||||
lua_pushinteger(L, subsector->firstline);
|
lua_pushinteger(L, subsector->firstline);
|
||||||
return 1;
|
return 1;
|
||||||
case subsector_validcount:
|
|
||||||
lua_pushinteger(L, subsector->validcount);
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -564,9 +557,6 @@ static int line_get(lua_State *L)
|
||||||
case line_backsector:
|
case line_backsector:
|
||||||
LUA_PushUserdata(L, line->backsector, META_SECTOR);
|
LUA_PushUserdata(L, line->backsector, META_SECTOR);
|
||||||
return 1;
|
return 1;
|
||||||
case line_validcount:
|
|
||||||
lua_pushinteger(L, line->validcount);
|
|
||||||
return 1;
|
|
||||||
case line_firsttag:
|
case line_firsttag:
|
||||||
lua_pushinteger(L, line->firsttag);
|
lua_pushinteger(L, line->firsttag);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue