common builds cleanly

This commit is contained in:
Kayne Ruse
2015-01-13 00:23:01 +11:00
parent de1cd8d6a8
commit dc40ee64cf
5 changed files with 155 additions and 10 deletions
+5 -3
View File
@@ -25,6 +25,7 @@
#include "serial_packet_base.hpp"
#include "character_packet.hpp"
#include "client_packet.hpp"
#include "monster_packet.hpp"
#include "region_packet.hpp"
#include "server_packet.hpp"
#include "text_packet.hpp"
@@ -38,9 +39,10 @@ constexpr int NETWORK_VERSION = -1;
union MaxPacket {
CharacterPacket a;
ClientPacket b;
RegionPacket c;
ServerPacket d;
TextPacket e;
MonsterPacket c;
RegionPacket d;
ServerPacket e;
TextPacket f;
};
constexpr int MAX_PACKET_SIZE = sizeof(MaxPacket);