From d6ed66d89bfc9dd0e42e13233b6d85e5902a524c Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Tue, 20 Jun 2023 18:10:36 -0400 Subject: [PATCH] MxTimer::Start - swap instruction order Technically, isRunning is set after getting the real time according to the pseudo code, which i guess is fine, you dont know it started until it really started --- LEGO1/mxtimer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/mxtimer.cpp b/LEGO1/mxtimer.cpp index 8be837d4..cc91912c 100644 --- a/LEGO1/mxtimer.cpp +++ b/LEGO1/mxtimer.cpp @@ -19,8 +19,8 @@ MxTimer::MxTimer() // OFFSET: LEGO1 0x100ae160 void MxTimer::Start() { - this->m_isRunning = MX_TRUE; MxTimer::s_LastTimeTimerStarted = timeGetTime(); + this->m_isRunning = MX_TRUE; } // OFFSET: LEGO1 0x100ae180