Implemented a macro for the serial buffer size
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
|
||||
#include "SDL/SDL_net.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#define PACKET_STRING_SIZE 100
|
||||
|
||||
#pragma pack(push, 0)
|
||||
@@ -114,4 +116,6 @@ union NetworkPacket {
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
#define PACKET_BUFFER_SIZE std::max(sizeof(NetworkPacket), REGION_WIDTH * REGION_HEIGHT * REGION_DEPTH * sizeof(Region::type_t) + sizeof(NetworkPacket::Metadata))
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user