mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-20 14:29:11 +00:00
Remove pointless check.
This commit is contained in:
parent
0b65aa39cd
commit
341b705bef
@ -163,7 +163,7 @@ void Base<personality>::posit_sprite(int sprite_number, int sprite_position, uin
|
||||
}
|
||||
|
||||
const auto sprite_row = uint8_t(screen_row - sprite_position);
|
||||
if(sprite_row < 0 || sprite_row >= sprite_height_) return;
|
||||
if(sprite_row >= sprite_height_) return; // The less-than-zero case is dealt with by the cast to unsigned.
|
||||
|
||||
if(fetch_sprite_buffer_->active_sprite_slot == mode_timing_.maximum_visible_sprites) {
|
||||
status_ |= StatusSpriteOverflow;
|
||||
|
Loading…
x
Reference in New Issue
Block a user