Skip to content

Commit a9ab971

Browse files
committed
- fix failed merge
1 parent ebb29df commit a9ab971

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

code/application/game/world.cc

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,21 +1608,17 @@ World::RenderDebug()
16081608
if (!listInactive && (entityMapping.table == MemDb::InvalidTableId || entityMapping.instance == MemDb::InvalidRow))
16091609
continue;
16101610

1611-
ImGui::BeginGroup();
1612-
ImGui::Text("[%i] ", entityIndex);
1613-
ImGui::SameLine();
1614-
ImGui::TextColored(
1615-
{1, 0.3f, 0, 1},
1616-
"tid:%i, partition: %i, index: %i",
1617-
entityMapping.table.id,
1618-
entityMapping.instance.partition,
1619-
entityMapping.instance.index
1620-
);
1621-
if (entityMapping.table != MemDb::TableId::Invalid())
1622-
{
1623-
ImGui::TextDisabled("- %s", this->db->GetTable(entityMapping.table).name.Value());
1624-
ImGui::EndGroup();
1625-
if (ImGui::IsItemHovered())
1611+
ImGui::BeginGroup();
1612+
ImGui::Text("[%i] ", entityIndex);
1613+
ImGui::SameLine();
1614+
ImGui::TextColored(
1615+
{1, 0.3f, 0, 1},
1616+
"tid:%i, partition: %i, index: %i",
1617+
entityMapping.table.id,
1618+
entityMapping.instance.partition,
1619+
entityMapping.instance.index
1620+
);
1621+
if (entityMapping.table != MemDb::TableId::Invalid())
16261622
{
16271623
ImGui::TextDisabled("- %s", this->db->GetTable(entityMapping.table).name.Value());
16281624
ImGui::EndGroup();
@@ -1637,11 +1633,11 @@ World::RenderDebug()
16371633
ownerBuffer = (byte*)ownerBuffer + (row.index * sizeof(Game::Entity));
16381634
Game::Entity owner = *(Game::Entity*)ownerBuffer;
16391635

1640-
ImGui::TextDisabled("Entity: %" PRIu64, (uint64_t)owner);
1641-
ImGui::TextDisabled("Entity.world: %" PRIu64, (uint64_t)owner.world);
1642-
ImGui::TextDisabled("Entity.reserved: %" PRIu64, (uint64_t)owner.reserved);
1643-
ImGui::TextDisabled("Entity.generation: %" PRIu64, (uint64_t)owner.generation);
1644-
ImGui::TextDisabled("Entity.index: %" PRIu64, (uint64_t)owner.index);
1636+
ImGui::TextDisabled("Entity: %" PRIu64, (uint64_t)owner);
1637+
ImGui::TextDisabled("Entity.world: %" PRIu64, (uint64_t)owner.world);
1638+
ImGui::TextDisabled("Entity.reserved: %" PRIu64, (uint64_t)owner.reserved);
1639+
ImGui::TextDisabled("Entity.generation: %" PRIu64, (uint64_t)owner.generation);
1640+
ImGui::TextDisabled("Entity.index: %" PRIu64, (uint64_t)owner.index);
16451641

16461642
bool prevDebugState = Game::ComponentInspection::Instance()->debug;
16471643
Game::ComponentInspection::Instance()->debug = true;

0 commit comments

Comments
 (0)