mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
add accedentially removed cast
This commit is contained in:
parent
3458ee0976
commit
a808ee07d3
|
@ -2871,7 +2871,7 @@ void CClient::Run()
|
|||
int64 TimeNowInMicroSeconds = (Now * 1000000ll) / time_freq();
|
||||
int64 TimeLastInMicroSeconds = (LastTime * 1000000ll) / time_freq();
|
||||
SleepTimeInMicroSeconds = (1000000ll / g_Config.m_ClRefreshRate) - (TimeNowInMicroSeconds - TimeLastInMicroSeconds);
|
||||
thread_sleep(max(SleepTimeInMicroSeconds / 1000ll, 0));
|
||||
thread_sleep(max(SleepTimeInMicroSeconds / 1000ll, (int64)0));
|
||||
Slept = true;
|
||||
}
|
||||
else if(g_Config.m_ClRefreshRate)
|
||||
|
@ -2879,7 +2879,7 @@ void CClient::Run()
|
|||
int64 TimeNowInMicroSeconds = (Now * 1000000ll) / time_freq();
|
||||
int64 TimeLastInMicroSeconds = (LastTime * 1000000ll) / time_freq();
|
||||
SleepTimeInMicroSeconds = (1000000ll / g_Config.m_ClRefreshRate) - (TimeNowInMicroSeconds - TimeLastInMicroSeconds);
|
||||
net_socket_read_wait(m_NetClient[0].m_Socket, max(SleepTimeInMicroSeconds, 0));
|
||||
net_socket_read_wait(m_NetClient[0].m_Socket, max(SleepTimeInMicroSeconds, (int64)0));
|
||||
Slept = true;
|
||||
}
|
||||
if(Slept)
|
||||
|
|
Loading…
Reference in a new issue