# HG changeset patch # User Michael Pavone # Date 1553142992 25200 # Node ID 1843823f1e9bfa9f24a6ecf0c40948c5609b5eb2 # Parent a29f35c47da414a73eb4eba269b8f0cc8406b0fb Fix off-by one in IO port connection text output diff -r a29f35c47da4 -r 1843823f1e9b io.c --- a/io.c Wed Mar 20 09:35:17 2019 -0700 +++ b/io.c Wed Mar 20 21:36:32 2019 -0700 @@ -391,7 +391,7 @@ } else #endif if (ports[i].device_type == IO_GAMEPAD3 || ports[i].device_type == IO_GAMEPAD6 || ports[i].device_type == IO_GAMEPAD2) { - printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num + 1, device_type_names[ports[i].device_type]); + printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num, device_type_names[ports[i].device_type]); } else { printf("IO port %s connected to device '%s'\n", io_name(i), device_type_names[ports[i].device_type]); }