Skip to content

Commit

Permalink
increment protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
moritztng committed Oct 16, 2024
1 parent ab5a215 commit 483a93f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct State

void physics(State &state, const std::vector<Player> &initialPlayers, std::optional<sockaddr_in> &serverAddress)
{
constexpr uint16_t PROTOCOL_VERSION = 0;
constexpr uint16_t PROTOCOL_VERSION = 1;
int udpSocket = -1;
try
{
Expand Down
2 changes: 1 addition & 1 deletion server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct Client

void receive(int &udpSocket, std::vector<Client> &clients, bool &running)
{
constexpr uint16_t PROTOCOL_VERSION = 0;
constexpr uint16_t PROTOCOL_VERSION = 1;
try
{
while (running)
Expand Down

0 comments on commit 483a93f

Please sign in to comment.