Skip to content

Commit 8959fdd

Browse files
committed
fixed build
1 parent b0f17c6 commit 8959fdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/System/Timer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ namespace RTE {
142142
/// Sets how much progress has been made toward the set time limit previously set by SetRealTimeLimitMS.
143143
/// 0 means no progress, 1.0 means the timer is at the limit, greater is beyond the limit.
144144
/// @param progress A normalized scalar between 0.0 - 1.0 of the progress toward the limit.
145-
void SetRealTimeLimitProgress(double progress) { m_StartRealTime = g_TimerMan.GetSimTickCount() - static_cast<long long>(round(m_RealTimeLimit * progress)); }
145+
void SetRealTimeLimitProgress(double progress) { m_StartRealTime = g_TimerMan.GetSimTickCount() - static_cast<long long>(std::round(m_RealTimeLimit * progress)); }
146146

147147
/// Returns true or false, depending on whether the elapsed time falls in one of two repeating intervals which divide it.
148148
/// This is useful for blink animations etc.
@@ -236,7 +236,7 @@ namespace RTE {
236236
/// Sets how much progress has been made toward the set time limit previously set by SetSimTimeLimitMS.
237237
/// 0 means no progress, 1.0 means the timer is at the limit, greater is beyond the limit.
238238
/// @param progress A normalized scalar between 0.0 - 1.0 of the progress toward the limit.
239-
void SetSimTimeLimitProgress(double progress) { m_StartSimTime = g_TimerMan.GetSimTickCount() - static_cast <long long>(round(m_SimTimeLimit * progress)); }
239+
void SetSimTimeLimitProgress(double progress) { m_StartSimTime = g_TimerMan.GetSimTickCount() - static_cast <long long>(std::round(m_SimTimeLimit * progress)); }
240240

241241
/// Returns true or false, depending on whether the elapsed time falls in one of two repeating intervals which divide it.
242242
/// This is useful for blink animations etc.

0 commit comments

Comments
 (0)