NetPlayClient: Fix reassembling of system time from packets

The shifts need to be swapped to correctly reassemble a 64-bit integer.
This commit is contained in:
Lioncash 2015-05-23 22:55:53 -04:00
parent 8f12cc5bc3
commit 6dd10033d3
2 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ unsigned int NetPlayClient::OnData(sf::Packet& packet)
u32 x, y;
packet >> x;
packet >> y;
g_netplay_initial_gctime = x | ((u64)y >> 32);
g_netplay_initial_gctime = x | ((u64)y << 32);
}
m_dialog->OnMsgStartGame();

View File

@ -657,7 +657,7 @@ bool NetPlayServer::StartGame()
*spac << m_settings.m_EXIDevice[0];
*spac << m_settings.m_EXIDevice[1];
*spac << (u32)g_netplay_initial_gctime;
*spac << (u32)g_netplay_initial_gctime << 32;
*spac << (u32)(g_netplay_initial_gctime >> 32);
SendAsyncToClients(spac);