Fix opening reallocation not growing big enough for extra clipping

This commit is contained in:
Jaime Passos 2020-07-24 00:26:48 -03:00
parent 9febd263e9
commit aaa8a2cb2b

View file

@ -1870,7 +1870,7 @@ void R_StoreWallRange(INT32 start, INT32 stop)
//SoM: Code to remove limits on openings.
{
size_t pos = lastopening - openings;
size_t need = (rw_stopx - start)*4 + pos;
size_t need = (rw_stopx - start)*6 + pos;
if (need > maxopenings)
{
drawseg_t *ds; //needed for fix from *cough* zdoom *cough*