1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-10 12:29:01 +00:00

Switched to the more natural type, which is also signed, making my logic less prone to error.

This commit is contained in:
Thomas Harte 2017-02-11 13:16:53 -05:00
parent 8de6caf6ff
commit 905ed1f87b
2 changed files with 4 additions and 4 deletions

View File

@ -583,8 +583,8 @@ void TIA::draw_player(Player &player, CollisionType collision_identity, const in
if(end < first_pixel) return; if(end < first_pixel) return;
if(start < first_pixel) start = first_pixel; if(start < first_pixel) start = first_pixel;
uint8_t &position = position_[position_identity]; int &position = position_[position_identity];
uint8_t &motion = motion_[position_identity]; int &motion = motion_[position_identity];
bool &is_moving = is_moving_[position_identity]; bool &is_moving = is_moving_[position_identity];
// while(start < end) // while(start < end)
// { // {

View File

@ -144,8 +144,8 @@ class TIA {
// movement // movement
bool horizontal_blank_extend_; bool horizontal_blank_extend_;
int horizontal_move_start_time_; int horizontal_move_start_time_;
uint8_t motion_[5]; int motion_[5];
uint8_t position_[5]; int position_[5];
bool is_moving_[5]; bool is_moving_[5];
enum class MotionIndex : uint8_t { enum class MotionIndex : uint8_t {
Ball, Ball,