destination name is now OK for every trave services

actorid
gugus 12 years ago
parent 3060fbee60
commit 1971ba66f1

@ -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…
Cancel
Save