Levels which fit in MAX_SEGMENTS_ORIGINAL read exactly MAX_SEGMENTS_ORIGINAL segments worth of light_subtracted, even though fewer segments were defined. Prepare light_subtracted into a temporary stack buffer instead of doing byte-at-a-time writes. Initialize this stack buffer to 0 when necessary. Write the buffer once it is fully prepared. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |