mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Fix guild guide fast travelling to exteriors time
This commit is contained in:
parent
bcd9cc4baa
commit
e9e9c0dd6b
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue