diff --git a/src/OverteClient.cpp b/src/OverteClient.cpp index 92a7282..a4a19ca 100644 --- a/src/OverteClient.cpp +++ b/src/OverteClient.cpp @@ -729,6 +729,9 @@ void OverteClient::handleDomainListReply(const char* data, size_t len) { uint16_t localID = ntohs(*reinterpret_cast(data + offset)); offset += 2; + // Store our local ID for use in sourced packets + m_localID = localID; + std::cout << "[OverteClient] Local ID: " << localID << std::endl; // Read permissions (32-bit) diff --git a/src/OverteClient.hpp b/src/OverteClient.hpp index 8f6557e..cf990f0 100644 --- a/src/OverteClient.hpp +++ b/src/OverteClient.hpp @@ -96,6 +96,7 @@ private: std::string m_sessionUUID; // Our client session UUID std::string m_username; // Domain account username (for future signature-based auth) std::uint32_t m_sequenceNumber{0}; // Packet sequence number for NLPacket protocol + std::uint16_t m_localID{0}; // Local ID assigned by domain server // Very small in-process world state for testing std::unordered_map m_entities;