- added a SECF_SILENTMOVE flag.
Since Eternity got this it's a good candidate for a potential Super-Boom standard, and it's also useful for silencing a sector temporarily without removing the sound sequence.
This commit is contained in:
parent
d34077a3ba
commit
b0db5d9b16
6 changed files with 21 additions and 10 deletions
|
|
@ -198,17 +198,20 @@ DPillar::DPillar (sector_t *sector, EPillar type, fixed_t speed,
|
|||
m_FloorSpeed = Scale (speed, floordist, ceilingdist);
|
||||
}
|
||||
|
||||
if (sector->seqType >= 0)
|
||||
if (!(m_Sector->Flags & SECF_SILENTMOVE))
|
||||
{
|
||||
SN_StartSequence (sector, CHAN_FLOOR, sector->seqType, SEQ_PLATFORM, 0);
|
||||
}
|
||||
else if (sector->SeqName != NAME_None)
|
||||
{
|
||||
SN_StartSequence (sector, CHAN_FLOOR, sector->SeqName, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
SN_StartSequence (sector, CHAN_FLOOR, "Floor", 0);
|
||||
if (sector->seqType >= 0)
|
||||
{
|
||||
SN_StartSequence(sector, CHAN_FLOOR, sector->seqType, SEQ_PLATFORM, 0);
|
||||
}
|
||||
else if (sector->SeqName != NAME_None)
|
||||
{
|
||||
SN_StartSequence(sector, CHAN_FLOOR, sector->SeqName, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
SN_StartSequence(sector, CHAN_FLOOR, "Floor", 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue