mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 12:40:58 +00:00
Fixed crash bug. It's weird that linedefs' backsides aren't NULL but are instead 0xFFFF when invalid, so instead I used something which DOES take null pointers as a parameter.
This commit is contained in:
parent
da42165169
commit
020234cc5f
1 changed files with 4 additions and 4 deletions
|
@ -1810,17 +1810,17 @@ void T_MarioBlockChecker(levelspecthink_t *block)
|
|||
if (SearchMarioNode(block->sector->touching_thinglist))
|
||||
{
|
||||
sides[masterline->sidenum[0]].midtexture = sides[masterline->sidenum[0]].bottomtexture; // Update textures
|
||||
if (masterline->sidenum[1])
|
||||
if (masterline->backsector)
|
||||
{
|
||||
sides[masterline->sidenum[0]].sector->ceilingpic = sides[masterline->sidenum[0]].sector->floorpic = sides[masterline->sidenum[1]].sector->ceilingpic; // Update flats to be backside's ceiling if there's a back sector, otherwise leave them alone
|
||||
block->sector->ceilingpic = block->sector->floorpic = masterline->backsector->ceilingpic; // Update flats to be backside's ceiling
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sides[masterline->sidenum[0]].midtexture = sides[masterline->sidenum[0]].toptexture;
|
||||
if (masterline->sidenum[1])
|
||||
if (masterline->backsector)
|
||||
{
|
||||
sides[masterline->sidenum[0]].sector->ceilingpic = sides[masterline->sidenum[0]].sector->floorpic = sides[masterline->sidenum[1]].sector->floorpic; // Update flats to be backside's floor if there's a back sector, otherwise leave them alone
|
||||
block->sector->ceilingpic = block->sector->floorpic = masterline->backsector->floorpic; // Update flats to be backside's floor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue