mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
[General] Rework PACKET_ORIGIN enum
Additionally, comment out reading of originClientScript in ObjectPacket for now.
This commit is contained in:
parent
9e6459043b
commit
3165c84db4
@ -11,10 +11,12 @@ namespace mwmp
|
|||||||
{
|
{
|
||||||
enum PACKET_ORIGIN
|
enum PACKET_ORIGIN
|
||||||
{
|
{
|
||||||
GAMEPLAY = 0,
|
CLIENT_GAMEPLAY = 0,
|
||||||
CONSOLE = 1,
|
CLIENT_CONSOLE = 1,
|
||||||
CLIENT_SCRIPT = 2,
|
CLIENT_DIALOGUE = 2,
|
||||||
SERVER_SCRIPT = 3
|
CLIENT_SCRIPT_LOCAL = 3,
|
||||||
|
CLIENT_SCRIPT_GLOBAL = 4,
|
||||||
|
SERVER_SCRIPT = 5
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Item
|
struct Item
|
||||||
|
@ -50,8 +50,10 @@ bool ObjectPacket::PacketHeader(RakNet::BitStream *bs, bool send)
|
|||||||
|
|
||||||
RW(objectList->packetOrigin, 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);
|
RW(objectList->originClientScript, send, true);
|
||||||
|
*/
|
||||||
|
|
||||||
if (send)
|
if (send)
|
||||||
objectList->baseObjectCount = (unsigned int)(objectList->baseObjects.size());
|
objectList->baseObjectCount = (unsigned int)(objectList->baseObjects.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user