From 2a82b591e1a9ae70300c2929fdd316da49de7308 Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Sat, 6 Sep 2014 07:10:41 -0400 Subject: [PATCH] Clear movie variables that might have been set from a previous run. --- Source/Core/Core/Movie.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index 3834f417b8..375c1181ad 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -438,17 +438,21 @@ bool BeginRecordingInput(int controllers) g_currentLagCount = g_totalLagCount = 0; g_currentInputCount = g_totalInputCount = 0; g_totalTickCount = g_tickCountAtLastInput = 0; + bongos = 0; + memcards = 0; if (NetPlay::IsNetPlayRunning()) { bNetPlay = true; g_recordingStartTime = NETPLAY_INITIAL_GCTIME; } else + { g_recordingStartTime = Common::Timer::GetLocalTimeSinceJan1970(); + } g_rerecords = 0; - for (int i = 0; i < MAX_SI_CHANNELS; i++) + for (int i = 0; i < MAX_SI_CHANNELS; ++i) if (SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_TARUKONGA) bongos |= (1 << i); @@ -1253,7 +1257,7 @@ void GetSettings() void CheckMD5() { - for (int i=0, n=0; i<16; i++) + for (int i = 0, n = 0; i < 16; ++i) { if (tmpHeader.md5[i] != 0) continue;