- Put more floor/ceiling properties in sector_t into a substructure and

added wrapper functions.


SVN r1174 (trunk)
This commit is contained in:
Christoph Oelckers 2008-08-16 20:19:35 +00:00
commit bc5d0c882b
29 changed files with 271 additions and 246 deletions

View file

@ -110,7 +110,7 @@ void DCeiling::Tick ()
m_Sector->special = m_NewSpecial;
// fall through
case genCeilingChg:
m_Sector->ceilingpic = m_Texture;
m_Sector->SetTexture(sector_t::ceiling, m_Texture);
// fall through
default:
SN_StopSequence (m_Sector);
@ -143,7 +143,7 @@ void DCeiling::Tick ()
m_Sector->special = m_NewSpecial;
// fall through
case genCeilingChg:
m_Sector->ceilingpic = m_Texture;
m_Sector->SetTexture(sector_t::ceiling, m_Texture);
// fall through
default:
SN_StopSequence (m_Sector);
@ -421,7 +421,7 @@ manual_ceiling:
sec->FindModelCeilingSector (targheight);
if (modelsec != NULL)
{
ceiling->m_Texture = modelsec->ceilingpic;
ceiling->m_Texture = modelsec->GetTexture(sector_t::ceiling);
switch (change & 3)
{
case 1: // type is zeroed
@ -440,7 +440,7 @@ manual_ceiling:
}
else if (line) // else if a trigger model change
{
ceiling->m_Texture = line->frontsector->ceilingpic;
ceiling->m_Texture = line->frontsector->GetTexture(sector_t::ceiling);
switch (change & 3)
{
case 1: // type is zeroed