From 2d9d028bea7aef0ac82d5b970a3aa053daebf5be Mon Sep 17 00:00:00 2001 From: MonsterIestyn Date: Sat, 14 Feb 2015 21:37:05 +0000 Subject: [PATCH] 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 --- src/lua_hudlib.c | 10 ---------- src/lua_maplib.c | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index e0132828..86ff1133 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -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; diff --git a/src/lua_maplib.c b/src/lua_maplib.c index 80f66ed6..e5cc30c1 100644 --- a/src/lua_maplib.c +++ b/src/lua_maplib.c @@ -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;