mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Fix guild guide fast travelling to exteriors time
This commit is contained in:
parent
bcd9cc4baa
commit
e9e9c0dd6b
@ -168,7 +168,7 @@ namespace MWGui
|
||||
ESM::Position pos = *_sender->getUserData<ESM::Position>();
|
||||
std::string cellname = _sender->getUserString("Destination");
|
||||
bool interior = _sender->getUserString("interior") == "y";
|
||||
if (!interior)
|
||||
if (mPtr.getCell()->isExterior())
|
||||
{
|
||||
ESM::Position playerPos = player.getRefData().getPosition();
|
||||
float d = (osg::Vec3f(pos.pos[0], pos.pos[1], 0) - osg::Vec3f(playerPos.pos[0], playerPos.pos[1], 0)).length();
|
||||
|
Loading…
Reference in New Issue
Block a user