mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-24 02:01:17 +00:00
exposed floorlightsec, ceilinglightsec variables.
This commit is contained in:
parent
656f7f94ac
commit
da9786b593
1 changed files with 17 additions and 1 deletions
|
@ -43,8 +43,10 @@ enum sector_e {
|
||||||
sector_lightlevel,
|
sector_lightlevel,
|
||||||
sector_floorlightlevel,
|
sector_floorlightlevel,
|
||||||
sector_floorlightabsolute,
|
sector_floorlightabsolute,
|
||||||
|
sector_floorlightsec,
|
||||||
sector_ceilinglightlevel,
|
sector_ceilinglightlevel,
|
||||||
sector_ceilinglightabsolute,
|
sector_ceilinglightabsolute,
|
||||||
|
sector_ceilinglightsec,
|
||||||
sector_special,
|
sector_special,
|
||||||
sector_tag,
|
sector_tag,
|
||||||
sector_taglist,
|
sector_taglist,
|
||||||
|
@ -79,8 +81,10 @@ static const char *const sector_opt[] = {
|
||||||
"lightlevel",
|
"lightlevel",
|
||||||
"floorlightlevel",
|
"floorlightlevel",
|
||||||
"floorlightabsolute",
|
"floorlightabsolute",
|
||||||
|
"floorlightsec",
|
||||||
"ceilinglightlevel",
|
"ceilinglightlevel",
|
||||||
"ceilinglightabsolute",
|
"ceilinglightabsolute",
|
||||||
|
"ceilinglightsec",
|
||||||
"special",
|
"special",
|
||||||
"tag",
|
"tag",
|
||||||
"taglist",
|
"taglist",
|
||||||
|
@ -667,12 +671,18 @@ static int sector_get(lua_State *L)
|
||||||
case sector_floorlightabsolute:
|
case sector_floorlightabsolute:
|
||||||
lua_pushboolean(L, sector->floorlightabsolute);
|
lua_pushboolean(L, sector->floorlightabsolute);
|
||||||
return 1;
|
return 1;
|
||||||
|
case sector_floorlightsec:
|
||||||
|
lua_pushinteger(L, sector->floorlightsec);
|
||||||
|
return 1;
|
||||||
case sector_ceilinglightlevel:
|
case sector_ceilinglightlevel:
|
||||||
lua_pushinteger(L, sector->ceilinglightlevel);
|
lua_pushinteger(L, sector->ceilinglightlevel);
|
||||||
return 1;
|
return 1;
|
||||||
case sector_ceilinglightabsolute:
|
case sector_ceilinglightabsolute:
|
||||||
lua_pushboolean(L, sector->ceilinglightabsolute);
|
lua_pushboolean(L, sector->ceilinglightabsolute);
|
||||||
return 1;
|
return 1;
|
||||||
|
case sector_ceilinglightsec:
|
||||||
|
lua_pushinteger(L, sector->ceilinglightsec);
|
||||||
|
return 1;
|
||||||
case sector_special:
|
case sector_special:
|
||||||
lua_pushinteger(L, sector->special);
|
lua_pushinteger(L, sector->special);
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -823,12 +833,18 @@ static int sector_set(lua_State *L)
|
||||||
case sector_floorlightabsolute:
|
case sector_floorlightabsolute:
|
||||||
sector->floorlightabsolute = luaL_checkboolean(L, 3);
|
sector->floorlightabsolute = luaL_checkboolean(L, 3);
|
||||||
break;
|
break;
|
||||||
|
case sector_floorlightsec:
|
||||||
|
sector->floorlightsec = (INT32)luaL_checkinteger(L, 3);
|
||||||
|
break;
|
||||||
case sector_ceilinglightlevel:
|
case sector_ceilinglightlevel:
|
||||||
sector->ceilinglightlevel = (INT16)luaL_checkinteger(L, 3);
|
sector->ceilinglightlevel = (INT16)luaL_checkinteger(L, 3);
|
||||||
break;
|
break;
|
||||||
case sector_ceilinglightabsolute:
|
case sector_ceilinglightabsolute:
|
||||||
sector->ceilinglightabsolute = luaL_checkboolean(L, 3);
|
sector->ceilinglightabsolute = luaL_checkboolean(L, 3);
|
||||||
break;
|
break;
|
||||||
|
case sector_ceilinglightsec:
|
||||||
|
sector->ceilinglightsec = (INT32)luaL_checkinteger(L, 3);
|
||||||
|
break;
|
||||||
case sector_special:
|
case sector_special:
|
||||||
sector->special = (INT16)luaL_checkinteger(L, 3);
|
sector->special = (INT16)luaL_checkinteger(L, 3);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue