feat: add debug logging for entity packet parsing

This commit is contained in:
MayaTheShy
2025-11-09 01:49:08 -05:00
parent e4e9484010
commit 98135aa373

View File

@@ -451,6 +451,13 @@ void OverteClient::parseEntityPacket(const char* data, size_t len) {
if (len < 1) return;
// Debug: dump first bytes of packet
std::cout << "[OverteClient] parseEntityPacket: " << len << " bytes, first 32: ";
for (size_t i = 0; i < std::min(len, size_t(32)); i++) {
printf("%02x ", (unsigned char)data[i]);
}
std::cout << std::endl;
unsigned char packetType = static_cast<unsigned char>(data[0]);
// Entity packet types