Just let coin count overflow

This commit is contained in:
whowechina 2024-02-25 19:36:11 +08:00
parent c4f3a535e3
commit 4b40f75ae0
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -48,7 +48,7 @@ static void report_usb_hid()
hid_joy.buttons[0] = native_to_io4(buttons);
hid_joy.buttons[1] = native_to_io4(0);
if (last_buttons ^ buttons & (1 << 11)) {
if ((buttons & (1 << 11)) && (hid_joy.chutes[0] < 0xff00)) {
if (buttons & (1 << 11)) {
// just pressed coin button
hid_joy.chutes[0] += 0x100;
}