From d6aa5531cc30e302fe70ff880348d3fa6ad12143 Mon Sep 17 00:00:00 2001 From: MysterD Date: Thu, 24 Mar 2022 20:52:19 -0700 Subject: [PATCH] Add additional info to level area inform packets --- src/pc/network/packets/packet_level_area_inform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pc/network/packets/packet_level_area_inform.c b/src/pc/network/packets/packet_level_area_inform.c index 378f1034..7a01646b 100644 --- a/src/pc/network/packets/packet_level_area_inform.c +++ b/src/pc/network/packets/packet_level_area_inform.c @@ -33,7 +33,7 @@ void network_send_level_area_inform(struct NetworkPlayer* np) { network_send_to(np2->localIndex, &p); } - LOG_INFO("tx level area inform for global %d", np->globalIndex); + LOG_INFO("tx level area inform for global %d: (%d, %d, %d, %d)", np->globalIndex, np->currCourseNum, np->currActNum, np->currLevelNum, np->currAreaIndex); } void network_receive_level_area_inform(struct Packet* p) { @@ -53,7 +53,7 @@ void network_receive_level_area_inform(struct Packet* p) { packet_read(p, &levelSyncValid, sizeof(u8)); packet_read(p, &areaSyncValid, sizeof(u8)); - LOG_INFO("rx level area inform for global %d", globalIndex); + LOG_INFO("rx level area inform for global %d: (%d, %d, %d, %d)", globalIndex, courseNum, actNum, levelNum, areaIndex); struct NetworkPlayer* np = network_player_from_global_index(globalIndex); if (np == NULL || np->localIndex == UNKNOWN_LOCAL_INDEX || !np->connected) {