1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 16:29:20 +00:00

Merge pull request #116 from TomHarte/YarsBug

Fixes a bug in which TIA access during the border would flush all motion steps.
This commit is contained in:
Thomas Harte 2017-03-26 18:38:51 -04:00 committed by GitHub
commit 6e9ab9f330

View File

@ -586,7 +586,7 @@ template<class T> void TIA::draw_object(T &object, const uint8_t collision_ident
// movement works across the entire screen, so do work that falls outside of the pixel area
if(start < first_pixel) {
perform_border_motion<T>(object, start, std::max(end, first_pixel));
perform_border_motion<T>(object, start, std::min(end, first_pixel));
}
// don't continue to do any drawing if this window ends too early