Skip to content

Commit

Permalink
a26: fix hmove when position < offset
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Aug 20, 2023
1 parent 9fae1a4 commit 62eadd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ares/a26/tia/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ auto TIA::cxclr() -> void {
}

auto TIA::hmove() -> void {
for(auto& p : player) p.position = (p.position - p.offset) % 160;
for(auto& m : missile) m.position = (m.position - m.offset) % 160;
ball.position = (ball.position - ball.offset) % 160;
for(auto& p : player) p.position = (p.position - p.offset + 160) % 160;
for(auto& m : missile) m.position = (m.position - m.offset + 160) % 160;
ball.position = (ball.position - ball.offset + 160) % 160;
io.hmoveTriggered = io.vcounter;
}

Expand Down

0 comments on commit 62eadd8

Please sign in to comment.