Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
811 stars 66 forks source link

Fix floor texture map corruption #183

Closed donnierussellii closed 6 years ago

donnierussellii commented 6 years ago

Floor/ceiling horizontal span drawing was occasionally spilling over by one pixel. For example, a vertical line of pixels from a floor on the player's right would appear on the left edge of the screen. The rightmost pixel of a span sometimes went outside bounds of texture, causing corruption. Also more strict checking for divide by zero, and cleanup of function.