[General] Rework PACKET_ORIGIN enum

Additionally, comment out reading of originClientScript in ObjectPacket for now.
remotes/1728160796594174844/tmp_0.7.0-alpha
David Cernat 7 years ago
parent 9e6459043b
commit 3165c84db4

@ -11,10 +11,12 @@ namespace mwmp
{
enum PACKET_ORIGIN
{
GAMEPLAY = 0,
CONSOLE = 1,
CLIENT_SCRIPT = 2,
SERVER_SCRIPT = 3
CLIENT_GAMEPLAY = 0,
CLIENT_CONSOLE = 1,
CLIENT_DIALOGUE = 2,
CLIENT_SCRIPT_LOCAL = 3,
CLIENT_SCRIPT_GLOBAL = 4,
SERVER_SCRIPT = 5
};
struct Item

@ -50,8 +50,10 @@ bool ObjectPacket::PacketHeader(RakNet::BitStream *bs, bool send)
RW(objectList->packetOrigin, send);
if (objectList->packetOrigin == mwmp::CLIENT_SCRIPT)
/* Comment this out until it's implemented properly
if (objectList->packetOrigin == mwmp::CLIENT_SCRIPT_LOCAL)
RW(objectList->originClientScript, send, true);
*/
if (send)
objectList->baseObjectCount = (unsigned int)(objectList->baseObjects.size());

Loading…
Cancel
Save