Skip to content

Commit

Permalink
Fix error in SysTimeClass::Get
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Feb 15, 2024
1 parent 549c535 commit ddd4fe0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/w3d/lib/systimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ddd4fe0

Please sign in to comment.