|
|
@ -405,17 +405,24 @@ void WindowManager::changeCell(MWWorld::Ptr::CellStore* cell)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!(cell->cell->data.flags & ESM::Cell::Interior))
|
|
|
|
if (!(cell->cell->data.flags & ESM::Cell::Interior))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
std::string name;
|
|
|
|
if (cell->cell->name != "")
|
|
|
|
if (cell->cell->name != "")
|
|
|
|
map->setCellName( cell->cell->name );
|
|
|
|
name = cell->cell->name;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
map->setCellName( cell->cell->region );
|
|
|
|
name = cell->cell->region;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
map->setCellName( name );
|
|
|
|
|
|
|
|
|
|
|
|
map->setCellPrefix("Cell");
|
|
|
|
map->setCellPrefix("Cell");
|
|
|
|
|
|
|
|
hud->setCellPrefix("Cell");
|
|
|
|
map->setActiveCell( cell->cell->data.gridX, cell->cell->data.gridY );
|
|
|
|
map->setActiveCell( cell->cell->data.gridX, cell->cell->data.gridY );
|
|
|
|
|
|
|
|
hud->setActiveCell( cell->cell->data.gridX, cell->cell->data.gridY );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
map->setCellName( cell->cell->name );
|
|
|
|
map->setCellName( cell->cell->name );
|
|
|
|
map->setCellPrefix( cell->cell->name );
|
|
|
|
map->setCellPrefix( cell->cell->name );
|
|
|
|
|
|
|
|
hud->setCellPrefix( cell->cell->name );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -423,11 +430,13 @@ void WindowManager::changeCell(MWWorld::Ptr::CellStore* cell)
|
|
|
|
void WindowManager::setInteriorMapTexture(const int x, const int y)
|
|
|
|
void WindowManager::setInteriorMapTexture(const int x, const int y)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
map->setActiveCell(x,y, true);
|
|
|
|
map->setActiveCell(x,y, true);
|
|
|
|
|
|
|
|
hud->setActiveCell(x,y, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WindowManager::setPlayerPos(const float x, const float y)
|
|
|
|
void WindowManager::setPlayerPos(const float x, const float y)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
map->setPlayerPos(x,y);
|
|
|
|
map->setPlayerPos(x,y);
|
|
|
|
|
|
|
|
hud->setPlayerPos(x,y);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WindowManager::setPlayerDir(const float x, const float y)
|
|
|
|
void WindowManager::setPlayerDir(const float x, const float y)
|
|
|
|