Serialization is finally functional

This commit is contained in:
Kayne Ruse
2014-03-07 20:17:11 +11:00
parent 59285d1630
commit 6a204643f6
2 changed files with 98 additions and 37 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ void InWorld::Update(double delta) {
//suck in all waiting packets
NetworkPacket packet;
while(network.Receive()) {
memcpy(&packet, network.GetInData(), sizeof(NetworkPacket));
deserialize(&packet, network.GetInData());
packet.meta.srcAddress = network.GetInPacket()->address;
HandlePacket(packet);
}