diff --git a/src/dsectoreffect.cpp b/src/dsectoreffect.cpp index b1d517fe7..80a2cceac 100644 --- a/src/dsectoreffect.cpp +++ b/src/dsectoreffect.cpp @@ -79,6 +79,12 @@ void DSectorEffect::Serialize(FSerializer &arc) DEFINE_FIELD(DSectorEffect, m_Sector) +DEFINE_ACTION_FUNCTION(DSectorEffect, GetSector) +{ + PARAM_SELF_PROLOGUE(DSectorEffect); + ACTION_RETURN_POINTER(self->m_Sector); +} + IMPLEMENT_CLASS(DMover, true, true) IMPLEMENT_POINTERS_START(DMover) diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index bef1751da..068b64bdf 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -789,6 +789,8 @@ struct StringStruct native class SectorEffect : Thinker native { native protected Sector m_Sector; + + native clearscope Sector GetSector(); } class Mover : SectorEffect native