mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Update position after changing cell
This commit is contained in:
parent
7107136808
commit
5e072b9d3c
@ -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 << "exterior: " << player->GetCell()->mCellId.mIndex.mX << ", " << player->GetCell()->mCellId.mIndex.mY;
|
||||||
cout << " in to exterior cell \"" << x << ", " << y << "\"" << endl;
|
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.mX = x;
|
||||||
player->GetCell()->mCellId.mIndex.mY = y;
|
player->GetCell()->mCellId.mIndex.mY = y;
|
||||||
|
|
||||||
|
@ -164,6 +164,7 @@ void LocalPlayer::setCell()
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateCell(true);
|
updateCell(true);
|
||||||
|
updatePosition(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user