From 999ccccc778459c85cd91d9140295900543fed7b Mon Sep 17 00:00:00 2001 From: MysterD Date: Wed, 23 Sep 2020 21:13:03 -0700 Subject: [PATCH] Synchronize peak height to prevent random yelling of remote --- src/pc/network/packets/packet_player.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pc/network/packets/packet_player.c b/src/pc/network/packets/packet_player.c index 8e164167..955b7fe4 100644 --- a/src/pc/network/packets/packet_player.c +++ b/src/pc/network/packets/packet_player.c @@ -33,6 +33,7 @@ void network_send_player(void) { packet_write(&p, &gMarioStates[0].actionArg, sizeof(u32)); packet_write(&p, &gMarioStates[0].currentRoom, sizeof(s16)); packet_write(&p, &gMarioStates[0].squishTimer, sizeof(u8)); + packet_write(&p, &gMarioStates[0].peakHeight, sizeof(f32)); packet_write(&p, &customFlags, sizeof(u8)); packet_write(&p, &heldSyncID, sizeof(u32)); packet_write(&p, &heldBySyncID, sizeof(u32)); @@ -63,6 +64,7 @@ void network_receive_player(struct Packet* p) { packet_read(p, &gMarioStates[1].actionArg, sizeof(u32)); packet_read(p, &gMarioStates[1].currentRoom, sizeof(s16)); packet_read(p, &gMarioStates[1].squishTimer, sizeof(u8)); + packet_read(p, &gMarioStates[1].peakHeight, sizeof(f32)); packet_read(p, &customFlags, sizeof(u8)); packet_read(p, &heldSyncID, sizeof(u32)); packet_read(p, &heldBySyncID, sizeof(u32));