diff --git a/Machines/Atari2600/TIA.cpp b/Machines/Atari2600/TIA.cpp index d9f34cbb2..b46ccbc29 100644 --- a/Machines/Atari2600/TIA.cpp +++ b/Machines/Atari2600/TIA.cpp @@ -583,8 +583,8 @@ void TIA::draw_player(Player &player, CollisionType collision_identity, const in if(end < first_pixel) return; if(start < first_pixel) start = first_pixel; - uint8_t &position = position_[position_identity]; - uint8_t &motion = motion_[position_identity]; + int &position = position_[position_identity]; + int &motion = motion_[position_identity]; bool &is_moving = is_moving_[position_identity]; // while(start < end) // { diff --git a/Machines/Atari2600/TIA.hpp b/Machines/Atari2600/TIA.hpp index 789d786d0..28140b4b9 100644 --- a/Machines/Atari2600/TIA.hpp +++ b/Machines/Atari2600/TIA.hpp @@ -144,8 +144,8 @@ class TIA { // movement bool horizontal_blank_extend_; int horizontal_move_start_time_; - uint8_t motion_[5]; - uint8_t position_[5]; + int motion_[5]; + int position_[5]; bool is_moving_[5]; enum class MotionIndex : uint8_t { Ball,