snes - fix justifier for both portrs

This commit is contained in:
adelikat 2017-04-22 09:31:48 -05:00
parent 242b0e09ab
commit 9a0493c287
3 changed files with 1 additions and 2 deletions

View File

@ -20,8 +20,7 @@ void Justifier::enter() {
if(next < prev) {
int nx1 = interface()->inputPoll(port, Input::Device::Justifier, 0, (unsigned)Input::JustifierID::X);
int ny1 = interface()->inputPoll(port, Input::Device::Justifier, 0, (unsigned)Input::JustifierID::Y);
nx1 += player1.x;
ny1 += player1.y;
player1.x = max(-16, min(256 + 16, nx1));
player1.y = max(-16, min(240 + 16, ny1));
}