mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
destination name is now OK for every trave services
This commit is contained in:
parent
3060fbee60
commit
1971ba66f1
1 changed files with 6 additions and 1 deletions
|
@ -102,7 +102,12 @@ namespace MWGui
|
|||
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue