mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-02 03:16:11 -04:00
this is a more "clean" conversion to 64 bit than the type-fixups branch, which does borrow some elements from it but has far less find and replace...it is about 98-99% done, notes to follow later
This commit is contained in:
@@ -14,9 +14,9 @@ namespace UdpLibrary
|
||||
// UdpMisc functions
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int UdpMisc::SyncStampShortDeltaTime(udp_ushort stamp1, udp_ushort stamp2)
|
||||
int UdpMisc::SyncStampShortDeltaTime(uint16_t stamp1, uint16_t stamp2)
|
||||
{
|
||||
udp_ushort delta = (udp_ushort)(stamp1 - stamp2);
|
||||
uint16_t delta = (uint16_t)(stamp1 - stamp2);
|
||||
if (delta > 0x7fff)
|
||||
return((int)(0xffff - delta));
|
||||
return((int)delta);
|
||||
|
||||
Reference in New Issue
Block a user