From f6b717927bc69f24a712dcc2f6d6d2542b098238 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 6 Jan 2026 22:23:01 -0600 Subject: [PATCH] feat(client): load map in ClientInitializeGame --- src/client/Client.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index a243c64..a6a2796 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -94,10 +94,14 @@ void ClientInitializeGame(uint32_t mapId, C3Vector position) { ClientServices::SetMessageHandler(SMSG_TRANSFER_PENDING, TransferPendingHandler, nullptr); ClientServices::SetMessageHandler(SMSG_TRANSFER_ABORTED, TransferAbortedHandler, nullptr); ClientServices::SetMessageHandler(SMSG_LOGIN_VERIFY_WORLD, LoginVerifyWorldHandler, nullptr); - ClientServices::SetMessageHandler(SMSG_KICK_REASON, CGlueMgr::OnKickReasonMsg, nullptr); // TODO + + auto mapRec = g_mapDB.GetRecord(mapId); + CWorld::LoadMap(mapRec->m_directory, position, mapId); + + // TODO } void ClientRegisterConsoleCommands() {