From 6575c9a3449f7b5b54df09cedd88d65a8adc4121 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 15 Feb 2015 00:34:14 +0100 Subject: [PATCH] Don't do conditional inside for loop --- runloop.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runloop.c b/runloop.c index 56b893816c..1d58091b07 100644 --- a/runloop.c +++ b/runloop.c @@ -808,11 +808,16 @@ static inline retro_input_t input_keys_pressed(void) g_settings.input.analog_dpad_mode[i]); g_extern.turbo_frame_enable[i] = 0; + } - if (!driver.block_libretro_input) + if (!driver.block_libretro_input) + { + for (i = 0; i < g_settings.input.max_users; i++) + { g_extern.turbo_frame_enable[i] = driver.input->input_state(driver.input_data, binds, i, RETRO_DEVICE_JOYPAD, 0, RARCH_TURBO_ENABLE); + } } for (key = 0; key < RARCH_BIND_LIST_END; key++)