mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
Merge branch 'no-hasslope' into 'next'
No hasslope See merge request STJr/SRB2!312
This commit is contained in:
commit
316cf27a7a
1 changed files with 0 additions and 6 deletions
|
@ -46,7 +46,6 @@ enum sector_e {
|
|||
sector_ffloors,
|
||||
sector_fslope,
|
||||
sector_cslope,
|
||||
sector_hasslope
|
||||
#else
|
||||
sector_ffloors
|
||||
#endif
|
||||
|
@ -69,7 +68,6 @@ static const char *const sector_opt[] = {
|
|||
#ifdef ESLOPE
|
||||
"f_slope",
|
||||
"c_slope",
|
||||
"hasslope",
|
||||
#endif
|
||||
NULL};
|
||||
|
||||
|
@ -471,9 +469,6 @@ static int sector_get(lua_State *L)
|
|||
case sector_cslope: // c_slope
|
||||
LUA_PushUserdata(L, sector->c_slope, META_SLOPE);
|
||||
return 1;
|
||||
case sector_hasslope: // hasslope
|
||||
lua_pushboolean(L, sector->hasslope);
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
return 0;
|
||||
|
@ -500,7 +495,6 @@ static int sector_set(lua_State *L)
|
|||
#ifdef ESLOPE
|
||||
case sector_fslope: // f_slope
|
||||
case sector_cslope: // c_slope
|
||||
case sector_hasslope: // hasslope
|
||||
#endif
|
||||
default:
|
||||
return luaL_error(L, "sector_t field " LUA_QS " cannot be set.", sector_opt[field]);
|
||||
|
|
Loading…
Reference in a new issue