mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- Duke: fixed some crashes with bad map setups
This commit is contained in:
parent
126f6051d2
commit
bc5c742930
2 changed files with 3 additions and 3 deletions
|
@ -159,7 +159,7 @@ void se40code(int x, int y, int z, binangle a, fixedhoriz h, int smoothratio)
|
|||
|
||||
void renderMirror(int cposx, int cposy, int cposz, binangle cang, fixedhoriz choriz, int smoothratio)
|
||||
{
|
||||
if (testgotpic(TILE_MIRROR, true))
|
||||
if (mirrorcnt > 0 && testgotpic(TILE_MIRROR, true))
|
||||
{
|
||||
int dst = 0x7fffffff, i = 0;
|
||||
for (int k = 0; k < mirrorcnt; k++)
|
||||
|
@ -168,7 +168,7 @@ void renderMirror(int cposx, int cposy, int cposz, binangle cang, fixedhoriz cho
|
|||
if (j < dst) dst = j, i = k;
|
||||
}
|
||||
|
||||
if (mirrorwall[i]->overpicnum == TILE_MIRROR)
|
||||
if (mirrorwall[i] && mirrorwall[i]->overpicnum == TILE_MIRROR)
|
||||
{
|
||||
int tposx, tposy;
|
||||
fixed_t tang;
|
||||
|
|
|
@ -3510,7 +3510,7 @@ void moveeffectors_d(void) //STATNUM 3
|
|||
auto sc = act->sector();
|
||||
if (sc->wallnum != 4) continue;
|
||||
auto wal = sc->firstWall() + 2;
|
||||
alignflorslope(act->sector(), wal->wall_int_pos().X, wal->wall_int_pos().Y, wal->nextSector()->floorz);
|
||||
if (wal->nextSector()) alignflorslope(act->sector(), wal->wall_int_pos().X, wal->wall_int_pos().Y, wal->nextSector()->floorz);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue