feat: Destroyable component debug info (#1849)

tested that the ui now shows server and client info together if configured to do so
This commit is contained in:
David Markowitz
2025-07-23 02:08:39 -07:00
committed by GitHub
parent ba964932b7
commit 24f4c9d413
5 changed files with 74 additions and 5 deletions

View File

@@ -2243,7 +2243,7 @@ bool Entity::MsgRequestServerObjectInfo(GameMessages::GameMsg& msg) {
}
HandleMsg(info);
auto* targetForReport = Game::entityManager->GetEntity(requestInfo.targetForReport);
if (targetForReport) GameMessages::SendUIMessageServerToSingleClient("ToggleObjectDebugger", response, targetForReport->GetSystemAddress());
auto* client = Game::entityManager->GetEntity(requestInfo.clientId);
if (client) GameMessages::SendUIMessageServerToSingleClient("ToggleObjectDebugger", response, client->GetSystemAddress());
return true;
}