mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-03-02 06:42:41 +00:00
- fixed: dynamic lights did not relink themselves when their position changed.
This commit is contained in:
parent
22e9fc9b76
commit
d797415745
3 changed files with 16 additions and 2 deletions
|
@ -1186,7 +1186,7 @@ public:
|
||||||
void LinkToWorld (sector_t *sector);
|
void LinkToWorld (sector_t *sector);
|
||||||
void UnlinkFromWorld ();
|
void UnlinkFromWorld ();
|
||||||
void AdjustFloorClip ();
|
void AdjustFloorClip ();
|
||||||
void SetOrigin (fixed_t x, fixed_t y, fixed_t z, bool moving = false);
|
virtual void SetOrigin (fixed_t x, fixed_t y, fixed_t z, bool moving = false);
|
||||||
bool InStateSequence(FState * newstate, FState * basestate);
|
bool InStateSequence(FState * newstate, FState * basestate);
|
||||||
int GetTics(FState * newstate);
|
int GetTics(FState * newstate);
|
||||||
bool SetState (FState *newstate, bool nofunction=false);
|
bool SetState (FState *newstate, bool nofunction=false);
|
||||||
|
|
|
@ -384,6 +384,19 @@ void ADynamicLight::UpdateLocation()
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
void ADynamicLight::SetOrigin(fixed_t x, fixed_t y, fixed_t z, bool moving)
|
||||||
|
{
|
||||||
|
Super::SetOrigin(x, y, z, moving);
|
||||||
|
LinkLight();
|
||||||
|
}
|
||||||
|
|
||||||
|
//==========================================================================
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//==========================================================================
|
||||||
|
|
||||||
void ADynamicLight::SetOffset(fixed_t x, fixed_t y, fixed_t z)
|
void ADynamicLight::SetOffset(fixed_t x, fixed_t y, fixed_t z)
|
||||||
{
|
{
|
||||||
m_offX = x;
|
m_offX = x;
|
||||||
|
|
|
@ -81,7 +81,8 @@ public:
|
||||||
void UnlinkLight();
|
void UnlinkLight();
|
||||||
size_t PointerSubstitution (DObject *old, DObject *notOld);
|
size_t PointerSubstitution (DObject *old, DObject *notOld);
|
||||||
|
|
||||||
virtual void BeginPlay();
|
void BeginPlay();
|
||||||
|
void SetOrigin (fixed_t x, fixed_t y, fixed_t z, bool moving = false);
|
||||||
void PostBeginPlay();
|
void PostBeginPlay();
|
||||||
void Destroy();
|
void Destroy();
|
||||||
void Activate(AActor *activator);
|
void Activate(AActor *activator);
|
||||||
|
|
Loading…
Reference in a new issue