mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Sync player knockbackTimer
This commit is contained in:
parent
d9361989cf
commit
61bb4ff439
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,7 @@ struct PacketPlayerData {
|
|||
|
||||
u8 levelSyncValid;
|
||||
u8 areaSyncValid;
|
||||
u8 knockbackTimer;
|
||||
};
|
||||
#pragma pack()
|
||||
|
||||
|
@ -139,6 +140,8 @@ static void read_packet_data(struct PacketPlayerData* data, struct MarioState* m
|
|||
struct NetworkPlayer* np = &gNetworkPlayers[m->playerIndex];
|
||||
data->areaSyncValid = np->currAreaSyncValid;
|
||||
data->levelSyncValid = np->currLevelSyncValid;
|
||||
|
||||
data->knockbackTimer = m->knockbackTimer;
|
||||
}
|
||||
|
||||
static void write_packet_data(struct PacketPlayerData* data, struct MarioState* m,
|
||||
|
@ -201,6 +204,8 @@ static void write_packet_data(struct PacketPlayerData* data, struct MarioState*
|
|||
np->currAreaSyncValid = data->areaSyncValid;
|
||||
np->currLevelSyncValid = data->levelSyncValid;
|
||||
}
|
||||
|
||||
m->knockbackTimer = data->knockbackTimer;
|
||||
}
|
||||
|
||||
void network_send_player(u8 localIndex) {
|
||||
|
|
Loading…
Reference in a new issue