mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- fixed: DAnimatedDoor must not start an interpolation on the door sector's ceiling.
This commit is contained in:
parent
624c935385
commit
d74584e5b2
3 changed files with 4 additions and 4 deletions
|
@ -126,11 +126,11 @@ DMovingCeiling::DMovingCeiling ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
DMovingCeiling::DMovingCeiling (sector_t *sector)
|
DMovingCeiling::DMovingCeiling (sector_t *sector, bool interpolate)
|
||||||
: DMover (sector)
|
: DMover (sector)
|
||||||
{
|
{
|
||||||
sector->ceilingdata = this;
|
sector->ceilingdata = this;
|
||||||
interpolation = sector->SetInterpolation(sector_t::CeilingMove, true);
|
if (interpolate) interpolation = sector->SetInterpolation(sector_t::CeilingMove, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool sector_t::MoveAttached(int crush, double move, int floorOrCeiling, bool resetfailed)
|
bool sector_t::MoveAttached(int crush, double move, int floorOrCeiling, bool resetfailed)
|
||||||
|
|
|
@ -49,7 +49,7 @@ class DMovingCeiling : public DMover
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (DMovingCeiling, DMover)
|
DECLARE_CLASS (DMovingCeiling, DMover)
|
||||||
public:
|
public:
|
||||||
DMovingCeiling (sector_t *sector);
|
DMovingCeiling (sector_t *sector, bool interpolate = true);
|
||||||
protected:
|
protected:
|
||||||
DMovingCeiling ();
|
DMovingCeiling ();
|
||||||
};
|
};
|
||||||
|
|
|
@ -526,7 +526,7 @@ DAnimatedDoor::DAnimatedDoor ()
|
||||||
}
|
}
|
||||||
|
|
||||||
DAnimatedDoor::DAnimatedDoor (sector_t *sec)
|
DAnimatedDoor::DAnimatedDoor (sector_t *sec)
|
||||||
: DMovingCeiling (sec)
|
: DMovingCeiling (sec, false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue