Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure BitStream comparisons still work correctly #1752

Merged
merged 1 commit into from Oct 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions Shared/sdk/net/bitstream.h
Expand Up @@ -361,13 +361,14 @@ enum class eBitStreamVersion : unsigned short

// This allows us to automatically increment the BitStreamVersion when things are added to this enum.
// Make sure you only add things above this comment.
Latest,
Next,
Latest = Next - 1,
};

// This is a temporary check during the introduction of eBitStreamVersion.
// We only check it server-side because static_assert is not available for all client projects.
#ifndef MTA_CLIENT
static_assert(static_cast<unsigned short>(eBitStreamVersion::Latest) == 0x070);
static_assert(static_cast<unsigned short>(eBitStreamVersion::Latest) == 0x06F);
#endif

class NetBitStreamInterface : public NetBitStreamInterfaceNoVersion
Expand Down