Init PacketLoaded in PacketsController

This commit is contained in:
Koncord 2016-09-18 11:50:01 +08:00
parent 1e48555617
commit 9bcca6d141
2 changed files with 3 additions and 1 deletions

View file

@ -31,6 +31,7 @@ enum GameMessages
ID_GAME_CHARCLASS, ID_GAME_CHARCLASS,
ID_GAME_SKILLPRIORITY, ID_GAME_SKILLPRIORITY,
ID_HANDSHAKE, ID_HANDSHAKE,
ID_LOADED,
ID_GUI_MESSAGEBOX, ID_GUI_MESSAGEBOX,
ID_GAME_TIME ID_GAME_TIME
}; };

View file

@ -25,6 +25,7 @@
#include "Packets/PacketHandshake.hpp" #include "Packets/PacketHandshake.hpp"
#include "Packets/PacketGUIBoxes.hpp" #include "Packets/PacketGUIBoxes.hpp"
#include "Packets/PacketTime.hpp" #include "Packets/PacketTime.hpp"
#include "Packets/PacketLoaded.hpp"
#include "PacketsController.hpp" #include "PacketsController.hpp"
@ -61,7 +62,7 @@ mwmp::PacketsController::PacketsController(RakNet::RakPeerInterface *peer)
AddPacket<PacketGUIBoxes>(&packets, peer); AddPacket<PacketGUIBoxes>(&packets, peer);
AddPacket<PacketClass>(&packets, peer); AddPacket<PacketClass>(&packets, peer);
AddPacket<PacketTime>(&packets, peer); AddPacket<PacketTime>(&packets, peer);
AddPacket<PacketLoaded>(&packets, peer);
} }