forked from mirror/openmw-tes3mp
[General] Rework PACKET_ORIGIN enum
Additionally, comment out reading of originClientScript in ObjectPacket for now.
This commit is contained in:
parent
9e6459043b
commit
3165c84db4
2 changed files with 9 additions and 5 deletions
|
@ -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…
Reference in a new issue