From 905ed1f87bcbee4799133e0e600849d1e338f015 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 11 Feb 2017 13:16:53 -0500 Subject: [PATCH] Switched to the more natural type, which is also signed, making my logic less prone to error. --- Machines/Atari2600/TIA.cpp | 4 ++-- Machines/Atari2600/TIA.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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,