mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +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)
|
if (spri->sector())
|
||||||
spri->shade += (spri->sector()->ceilingshade - spri->shade) >> 1;
|
{
|
||||||
else
|
if (spri->sector()->ceilingstat & 1)
|
||||||
spri->shade += (spri->sector()->floorshade - spri->shade) >> 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);
|
p->angle.applyinput(sb_avel, &actions);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->spritebridge == 0)
|
if (p->spritebridge == 0 && s->sector())
|
||||||
{
|
{
|
||||||
j = s->sector()->floorpicnum;
|
j = s->sector()->floorpicnum;
|
||||||
|
|
||||||
|
|
|
@ -3651,7 +3651,7 @@ void processinput_r(int snum)
|
||||||
p->angle.applyinput(sb_avel, &actions);
|
p->angle.applyinput(sb_avel, &actions);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->spritebridge == 0)
|
if (p->spritebridge == 0 && s->sector())
|
||||||
{
|
{
|
||||||
int j = s->sector()->floorpicnum;
|
int j = s->sector()->floorpicnum;
|
||||||
k = 0;
|
k = 0;
|
||||||
|
|
Loading…
Reference in a new issue