From 41c63453814d23706762ebd3c9da1507adb91181 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 10 Aug 2019 14:14:20 +0200 Subject: [PATCH] Cleanups --- retroarch.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/retroarch.c b/retroarch.c index 6a73cb48d7..15d102e262 100644 --- a/retroarch.c +++ b/retroarch.c @@ -23975,12 +23975,10 @@ int runloop_iterate(unsigned *sleep_ms) retro_sleep(video_frame_delay); { - bool want_runahead = false; - unsigned run_ahead_num_frames = 0; #ifdef HAVE_RUNAHEAD - run_ahead_num_frames = settings->uints.run_ahead_frames; + unsigned run_ahead_num_frames = settings->uints.run_ahead_frames; /* Run Ahead Feature replaces the call to core_run in this loop */ - want_runahead = settings->bools.run_ahead_enabled && run_ahead_num_frames > 0; + bool want_runahead = settings->bools.run_ahead_enabled && run_ahead_num_frames > 0; #ifdef HAVE_NETWORKING want_runahead = want_runahead && !netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL); #endif