- Put more floor/ceiling properties in sector_t into a substructure and
added wrapper functions. SVN r1174 (trunk)
This commit is contained in:
parent
fcdef6a0de
commit
bc5d0c882b
29 changed files with 271 additions and 246 deletions
|
|
@ -157,7 +157,7 @@ void P_LineOpening (FLineOpening &open, AActor *actor, const line_t *linedef,
|
|||
/*Printf ("]]]]]] %d %d\n", ff, bf);*/
|
||||
|
||||
open.topsec = fc < bc? front : back;
|
||||
open.ceilingpic = open.topsec->ceilingpic;
|
||||
open.ceilingpic = open.topsec->GetTexture(sector_t::ceiling);
|
||||
open.top = fc < bc ? fc : bc;
|
||||
|
||||
bool usefront;
|
||||
|
|
@ -186,14 +186,14 @@ void P_LineOpening (FLineOpening &open, AActor *actor, const line_t *linedef,
|
|||
{
|
||||
open.bottom = ff;
|
||||
open.bottomsec = front;
|
||||
open.floorpic = front->floorpic;
|
||||
open.floorpic = front->GetTexture(sector_t::floor);
|
||||
open.lowfloor = bf;
|
||||
}
|
||||
else
|
||||
{
|
||||
open.bottom = bf;
|
||||
open.bottomsec = back;
|
||||
open.floorpic = back->floorpic;
|
||||
open.floorpic = back->GetTexture(sector_t::floor);
|
||||
open.lowfloor = ff;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue