fix(ui): show only zone name on character select, drop map/continent

This commit is contained in:
Kelsi 2026-04-05 04:34:39 -07:00
parent e4c4b6f429
commit 09c1469956

View file

@ -338,16 +338,11 @@ void CharacterScreen::render(game::GameHandler& gameHandler) {
ImGui::Text("%s", game::getGenderName(character.gender));
ImGui::Spacing();
{
std::string mapName = gameHandler.getMapName(character.mapId);
std::string zoneName = gameHandler.getWhoAreaName(character.zoneId);
if (!mapName.empty() && !zoneName.empty())
ImGui::Text("%s — %s", mapName.c_str(), zoneName.c_str());
else if (!mapName.empty())
ImGui::Text("%s (Zone %u)", mapName.c_str(), character.zoneId);
else if (!zoneName.empty())
ImGui::Text("Map %u — %s", character.mapId, zoneName.c_str());
if (!zoneName.empty())
ImGui::TextUnformatted(zoneName.c_str());
else
ImGui::Text("Map %u, Zone %u", character.mapId, character.zoneId);
ImGui::Text("Zone %u", character.zoneId);
}
if (character.hasGuild()) {