Doom Wiki

Excessive scrolling texture overflow

3,479pages on
this wiki
Add New Page
Add New Page Talk0

Due to a bug in the source code, excessive usage of the scrolling texture effect causes a crash or level dependent problems.

Inside of the function P_SpawnSpecials() in p_spec.c:

//	Init line EFFECTs
numlinespecials = 0;
for (i = 0;i < numlines; i++)
        case 48:
            linespeciallist[numlinespecials] = &lines[i];

A check against MAXLINEANIMS is not done before adding it to the list. Since MAXLINEANIMS is only 64, after the 64th scrolling texture wall inside the map is processed for specials, memory will start to be overwritten. Depending on how much memory is overwritten, this may produce level dependent results or crashes depending of the layout of internal variable memory.

Doom2+ increases the limit of MAXLINEANIMS, however it is only used for scrolling texture walls, it is not used anywhere else for any other reason.

Also on Fandom

Random Wiki