1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +00:00

Added a check against negative runs.

This commit is contained in:
Thomas Harte 2017-02-16 18:55:58 -05:00
parent 09309aa74f
commit 5ea232310f

View File

@ -720,6 +720,7 @@ void TIA::draw_player(Player &player, CollisionType collision_identity, const in
int first_pixel = first_pixel_cycle - 4 + (horizontal_blank_extend_ ? 8 : 0); int first_pixel = first_pixel_cycle - 4 + (horizontal_blank_extend_ ? 8 : 0);
if(end < first_pixel) return; if(end < first_pixel) return;
if(start < first_pixel) start = first_pixel; if(start < first_pixel) start = first_pixel;
if(start >= end) return;
// perform the visible part of the line, if any // perform the visible part of the line, if any
if(start < 224) if(start < 224)