diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-08-27 17:08:41 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-08-27 17:38:07 -0400 |
| commit | d10a0b440f01825d211f513157efaf33afcc1a33 (patch) | |
| tree | 73b96b96b91b8af89d4d2c144cb6f42269790082 /Source/Core/Common/SFMLHelper.cpp | |
| parent | 3130d388db405221fbfa6eaf5ff664b55ae37a08 (diff) | |
SFMLHelper: Simplify 64-bit packet reading function and remove 64-bit write function
Now that SFML's packet class can properly handle 64-bit values, we don't
need a helper function just to write values to the packets.
Diffstat (limited to 'Source/Core/Common/SFMLHelper.cpp')
| -rw-r--r-- | Source/Core/Common/SFMLHelper.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/Core/Common/SFMLHelper.cpp b/Source/Core/Common/SFMLHelper.cpp index 367bd93a9e..46b8ce836b 100644 --- a/Source/Core/Common/SFMLHelper.cpp +++ b/Source/Core/Common/SFMLHelper.cpp @@ -26,13 +26,8 @@ u32 PacketReadU32(sf::Packet& packet) u64 PacketReadU64(sf::Packet& packet) { - u32 low, high; - packet >> low >> high; - return low | (static_cast<u64>(high) << 32); -} - -void PacketWriteU64(sf::Packet& packet, const u64 value) -{ - packet << static_cast<u32>(value) << static_cast<u32>(value >> 32); + sf::Uint64 value; + packet >> value; + return value; } } // namespace Common |
