From 16343ac548ee63f07ed3f37a7c1a3ec0d2a39b3d Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Thu, 15 Feb 2024 23:37:20 +0100 Subject: [PATCH] Fix error in SysTimeClass::Get (#1105) --- src/w3d/lib/systimer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/w3d/lib/systimer.cpp b/src/w3d/lib/systimer.cpp index acb6a4095..617ca1305 100644 --- a/src/w3d/lib/systimer.cpp +++ b/src/w3d/lib/systimer.cpp @@ -38,13 +38,13 @@ int SysTimeClass::Get() _is_init = true; } - int time = rts::Get_Time(); + unsigned int time = rts::Get_Time(); - if (time < m_startTime) { - return m_negTime + time; + if (time > m_startTime) { + return time - m_startTime; } - return time - m_startTime; + return time + m_negTime; } bool SysTimeClass::Is_Getting_Late()