1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 18:31:53 +00:00

Attempted to prevent extraneous moves.

This commit is contained in:
Thomas Harte 2017-02-16 18:52:39 -05:00
parent b5357860b9
commit 09309aa74f

View File

@ -726,6 +726,7 @@ void TIA::draw_player(Player &player, CollisionType collision_identity, const in
{ {
movement_time -= first_pixel_cycle - 4; movement_time -= first_pixel_cycle - 4;
draw_player_visible(player, collision_identity, position_identity, start - first_pixel_cycle + 4, std::min(end - first_pixel_cycle + 4, 160), movement_time); draw_player_visible(player, collision_identity, position_identity, start - first_pixel_cycle + 4, std::min(end - first_pixel_cycle + 4, 160), movement_time);
movement_time += first_pixel_cycle - 4;
} }
// move further if required // move further if required