snes - fix justifier for both portrs
This commit is contained in:
parent
242b0e09ab
commit
9a0493c287
|
@ -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));
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue