mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
destination name is now OK for every trave services
This commit is contained in:
parent
3060fbee60
commit
1971ba66f1
@ -102,7 +102,12 @@ namespace MWGui
|
|||||||
|
|
||||||
for(int i = 0;i<mActor.get<ESM::NPC>()->base->mTransport.size();i++)
|
for(int i = 0;i<mActor.get<ESM::NPC>()->base->mTransport.size();i++)
|
||||||
{
|
{
|
||||||
addDestination(mActor.get<ESM::NPC>()->base->mTransport[i].mCellName);
|
std::string cellname = mActor.get<ESM::NPC>()->base->mTransport[i].mCellName;
|
||||||
|
int x,y;
|
||||||
|
MWBase::Environment::get().getWorld()->positionToIndex(mActor.get<ESM::NPC>()->base->mTransport[i].mPos.pos[0],
|
||||||
|
mActor.get<ESM::NPC>()->base->mTransport[i].mPos.pos[1],x,y);
|
||||||
|
if(cellname == "") cellname = MWBase::Environment::get().getWorld()->getExterior(x,y)->cell->name;
|
||||||
|
addDestination(cellname);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateLabels();
|
updateLabels();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user