Synchronize peak height to prevent random yelling of remote

This commit is contained in:
MysterD 2020-09-23 21:13:03 -07:00
parent c2cdb654f9
commit c1b28486b3
1 changed files with 2 additions and 0 deletions

View File

@ -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));