Export sector effect pointers, fix missing pointer assignment on Lighting effect creation.

This commit is contained in:
Marisa Kirisame 2018-01-28 19:41:26 +01:00 committed by Christoph Oelckers
parent 4f68b78c3b
commit 053d9f4a44
3 changed files with 7 additions and 6 deletions

View file

@ -191,6 +191,7 @@ DLighting::DLighting (sector_t *sector)
: DSectorEffect (sector)
{
ChangeStatNum (STAT_LIGHT);
sector->lightingdata = this;
}
//-----------------------------------------------------------------------------

View file

@ -2490,9 +2490,9 @@ DEFINE_FIELD_X(Sector, sector_t, thinglist)
DEFINE_FIELD_X(Sector, sector_t, friction)
DEFINE_FIELD_X(Sector, sector_t, movefactor)
DEFINE_FIELD_X(Sector, sector_t, terrainnum)
DEFINE_FIELD_X(Sector, sector_t, floordata)
DEFINE_FIELD_X(Sector, sector_t, ceilingdata)
DEFINE_FIELD_X(Sector, sector_t, lightingdata)
DEFINE_FIELD_UNSIZED(Sector, sector_t, floordata)
DEFINE_FIELD_UNSIZED(Sector, sector_t, ceilingdata)
DEFINE_FIELD_UNSIZED(Sector, sector_t, lightingdata)
DEFINE_FIELD_X(Sector, sector_t, interpolations)
DEFINE_FIELD_X(Sector, sector_t, soundtraversed)
DEFINE_FIELD_X(Sector, sector_t, stairlock)

View file

@ -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
{