Fixed crash regarding opening reallocating. A thousand thanks go for MonsterIestyn for figuring this out.
I carelessly changed the line's drawsegs to curdrawsegs without researching what that piece of code did.
This commit is contained in:
parent
0795c7811a
commit
f536ab3467
|
@ -1796,7 +1796,7 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
||||||
// borrowed fix from *cough* zdoom *cough*
|
// borrowed fix from *cough* zdoom *cough*
|
||||||
// [RH] We also need to adjust the openings pointers that
|
// [RH] We also need to adjust the openings pointers that
|
||||||
// were already stored in drawsegs.
|
// were already stored in drawsegs.
|
||||||
for (ds = curdrawsegs; ds < ds_p; ds++)
|
for (ds = drawsegs; ds < ds_p; ds++)
|
||||||
{
|
{
|
||||||
#define ADJUST(p) if (ds->p + ds->x1 >= oldopenings && ds->p + ds->x1 <= oldlast) ds->p = ds->p - oldopenings + openings;
|
#define ADJUST(p) if (ds->p + ds->x1 >= oldopenings && ds->p + ds->x1 <= oldlast) ds->p = ds->p - oldopenings + openings;
|
||||||
ADJUST(maskedtexturecol);
|
ADJUST(maskedtexturecol);
|
||||||
|
|
Loading…
Reference in New Issue