Export GetSector() again, removed lightingdata assignment.

This commit is contained in:
Marisa Kirisame 2018-01-28 21:25:19 +01:00 committed by Christoph Oelckers
parent f55bad472c
commit 4cc8ba3399
3 changed files with 7 additions and 1 deletions

View file

@ -78,6 +78,11 @@ void DSectorEffect::Serialize(FSerializer &arc)
DEFINE_FIELD(DSectorEffect, m_Sector) DEFINE_FIELD(DSectorEffect, m_Sector)
DEFINE_ACTION_FUNCTION(DSectorEffect, GetSector)
{
PARAM_SELF_PROLOGUE(DSectorEffect);
ACTION_RETURN_POINTER(self->GetSector());
}
IMPLEMENT_CLASS(DMover, true, true) IMPLEMENT_CLASS(DMover, true, true)

View file

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

View file

@ -795,6 +795,8 @@ struct StringStruct native
class SectorEffect : Thinker native class SectorEffect : Thinker native
{ {
native protected Sector m_Sector; native protected Sector m_Sector;
native clearscope Sector GetSector();
} }
class Mover : SectorEffect native class Mover : SectorEffect native