mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +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)
|
||||
{
|
||||
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)
|
||||
|
|
|
@ -49,7 +49,7 @@ class DMovingCeiling : public DMover
|
|||
{
|
||||
DECLARE_CLASS (DMovingCeiling, DMover)
|
||||
public:
|
||||
DMovingCeiling (sector_t *sector);
|
||||
DMovingCeiling (sector_t *sector, bool interpolate = true);
|
||||
protected:
|
||||
DMovingCeiling ();
|
||||
};
|
||||
|
|
|
@ -526,7 +526,7 @@ DAnimatedDoor::DAnimatedDoor ()
|
|||
}
|
||||
|
||||
DAnimatedDoor::DAnimatedDoor (sector_t *sec)
|
||||
: DMovingCeiling (sec)
|
||||
: DMovingCeiling (sec, false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue