diff --git a/src/p_lights.cpp b/src/p_lights.cpp index 2a52692b5..504095a40 100644 --- a/src/p_lights.cpp +++ b/src/p_lights.cpp @@ -191,6 +191,7 @@ DLighting::DLighting (sector_t *sector) : DSectorEffect (sector) { ChangeStatNum (STAT_LIGHT); + sector->lightingdata = this; } //----------------------------------------------------------------------------- diff --git a/wadsrc/static/zscript/mapdata.txt b/wadsrc/static/zscript/mapdata.txt index ff8758370..cb1bfa2c5 100644 --- a/wadsrc/static/zscript/mapdata.txt +++ b/wadsrc/static/zscript/mapdata.txt @@ -231,9 +231,9 @@ struct Sector native play native int terrainnum[2]; // thinker_t for reversable actions - //SectorEffect floordata; - //SectorEffect ceilingdata; - //SectorEffect lightingdata; + native SectorEffect floordata; + native SectorEffect ceilingdata; + native SectorEffect lightingdata; enum EPlane {