Default PROTOCOL_VERSION to 104

This commit is contained in:
Gent Semaj 2024-02-02 21:58:37 -05:00
parent 44560a46b7
commit 8d04f31c61
Signed by untrusted user: ycc
GPG Key ID: 2D76C57BF6BEADC4
1 changed files with 5 additions and 3 deletions

View File

@ -50,13 +50,15 @@ time_t getTime();
time_t getTimestamp();
void terminate(int);
// The PROTOCOL_VERSION definition is defined by the build system.
// The PROTOCOL_VERSION definition can be defined by the build system.
#if !defined(PROTOCOL_VERSION)
#define PROTOCOL_VERSION 104
#endif
#if PROTOCOL_VERSION == 104
#include "structs/0104.hpp"
#elif PROTOCOL_VERSION == 728
#include "structs/0728.hpp"
#elif PROTOCOL_VERSION == 104
#include "structs/0104.hpp"
#elif PROTOCOL_VERSION == 1013
#include "structs/1013.hpp"
#else