1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 21:45:32 +00:00

Update position after changing cell

This commit is contained in:
Koncord 2016-07-30 04:12:47 +08:00
parent 7107136808
commit 5e072b9d3c
2 changed files with 1 additions and 4 deletions

View file

@ -104,10 +104,6 @@ void ScriptFunctions::SetExterior(unsigned short pid, int x, int y) noexcept
cout << "exterior: " << player->GetCell()->mCellId.mIndex.mX << ", " << player->GetCell()->mCellId.mIndex.mY;
cout << " in to exterior cell \"" << x << ", " << y << "\"" << endl;
/*cout << "TEST1 : " << player->GetCell()->mData.mFlags << endl;
player->GetCell()->mData.mFlags &= ~1;
cout << "TEST2 : " << player->GetCell()->mData.mFlags << endl;*/
player->GetCell()->mCellId.mIndex.mX = x;
player->GetCell()->mCellId.mIndex.mY = y;

View file

@ -164,6 +164,7 @@ void LocalPlayer::setCell()
}
updateCell(true);
updatePosition(true);
}