forked from mirror/openmw-tes3mp
use GMST sDefaultCellname for the map window when cell has no region or name.
This commit is contained in:
parent
c9aa0ca1f4
commit
52e5e14654
1 changed files with 2 additions and 0 deletions
|
@ -449,6 +449,8 @@ void WindowManager::changeCell(MWWorld::Ptr::CellStore* cell)
|
||||||
const ESM::Region* region = MWBase::Environment::get().getWorld()->getStore().regions.search(cell->cell->region);
|
const ESM::Region* region = MWBase::Environment::get().getWorld()->getStore().regions.search(cell->cell->region);
|
||||||
if (region)
|
if (region)
|
||||||
name = region->name;
|
name = region->name;
|
||||||
|
else
|
||||||
|
name = getGameSettingString("sDefaultCellname", "Wilderness");
|
||||||
}
|
}
|
||||||
|
|
||||||
map->setCellName( name );
|
map->setCellName( name );
|
||||||
|
|
Loading…
Reference in a new issue