mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-14 16:40:52 +00:00
- Duke/RR: Add three sector nullptr checks after receiving crash in Redneck Rampage Route 66 while noclipping.
This commit is contained in:
parent
85a2e3bd06
commit
6539d72663
3 changed files with 9 additions and 6 deletions
|
@ -526,10 +526,13 @@ void moveplayers(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (spri->sector()->ceilingstat & 1)
|
||||
spri->shade += (spri->sector()->ceilingshade - spri->shade) >> 1;
|
||||
else
|
||||
spri->shade += (spri->sector()->floorshade - spri->shade) >> 1;
|
||||
if (spri->sector())
|
||||
{
|
||||
if (spri->sector()->ceilingstat & 1)
|
||||
spri->shade += (spri->sector()->ceilingshade - spri->shade) >> 1;
|
||||
else
|
||||
spri->shade += (spri->sector()->floorshade - spri->shade) >> 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2938,7 +2938,7 @@ void processinput_d(int snum)
|
|||
p->angle.applyinput(sb_avel, &actions);
|
||||
}
|
||||
|
||||
if (p->spritebridge == 0)
|
||||
if (p->spritebridge == 0 && s->sector())
|
||||
{
|
||||
j = s->sector()->floorpicnum;
|
||||
|
||||
|
|
|
@ -3651,7 +3651,7 @@ void processinput_r(int snum)
|
|||
p->angle.applyinput(sb_avel, &actions);
|
||||
}
|
||||
|
||||
if (p->spritebridge == 0)
|
||||
if (p->spritebridge == 0 && s->sector())
|
||||
{
|
||||
int j = s->sector()->floorpicnum;
|
||||
k = 0;
|
||||
|
|
Loading…
Reference in a new issue