mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-01 09:00:58 -04:00
changed name of teleport doors to the name of the destination cell
This commit is contained in:
parent
6e46ddae33
commit
67a067e49c
@ -38,6 +38,9 @@ namespace MWClass
|
|||||||
ESMS::LiveCellRef<ESM::Door, MWWorld::RefData> *ref =
|
ESMS::LiveCellRef<ESM::Door, MWWorld::RefData> *ref =
|
||||||
ptr.get<ESM::Door>();
|
ptr.get<ESM::Door>();
|
||||||
|
|
||||||
|
if (ref->ref.teleport && !ref->ref.destCell.empty()) // TODO doors that lead to exteriors
|
||||||
|
return ref->ref.destCell;
|
||||||
|
|
||||||
return ref->base->name;
|
return ref->base->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user