1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

changed name of teleport doors to the name of the destination cell

This commit is contained in:
Marc Zinnschlag 2010-08-19 13:19:23 +02:00
parent 6e46ddae33
commit 67a067e49c

View File

@ -38,6 +38,9 @@ namespace MWClass
ESMS::LiveCellRef<ESM::Door, MWWorld::RefData> *ref =
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;
}