mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 18:30:21 +00:00
Switched to the more natural type, which is also signed, making my logic less prone to error.
This commit is contained in:
parent
8de6caf6ff
commit
905ed1f87b
@ -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)
|
||||
// {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user