mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
Use display name instead of editor ID for World::getCellName
Doesn't affect Morrowind cells, but allows TES4+ cells to have legible names
This commit is contained in:
parent
c1f7a9c258
commit
88749b03d4
@ -660,8 +660,8 @@ namespace MWWorld
|
|||||||
|
|
||||||
std::string_view World::getCellName(const MWWorld::Cell& cell) const
|
std::string_view World::getCellName(const MWWorld::Cell& cell) const
|
||||||
{
|
{
|
||||||
if (!cell.isExterior() || !cell.getNameId().empty())
|
if (!cell.isExterior() || !cell.getDisplayName().empty())
|
||||||
return cell.getNameId();
|
return cell.getDisplayName();
|
||||||
|
|
||||||
return ESM::visit(ESM::VisitOverload{
|
return ESM::visit(ESM::VisitOverload{
|
||||||
[&](const ESM::Cell& cellIn) -> std::string_view { return getCellName(&cellIn); },
|
[&](const ESM::Cell& cellIn) -> std::string_view { return getCellName(&cellIn); },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user