mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 21:32:42 +00:00
Merge branch 'playerscale' into 'master'
Fully reset the player's cell reference when the player is reset (#8021) Closes #8021 See merge request OpenMW/openmw!4167
This commit is contained in:
commit
cb14af943d
@ -181,6 +181,7 @@
|
|||||||
Bug #7997: Can toggle perspective when paralyzed
|
Bug #7997: Can toggle perspective when paralyzed
|
||||||
Bug #8002: Portable light sources held by creatures do not emit lighting
|
Bug #8002: Portable light sources held by creatures do not emit lighting
|
||||||
Bug #8018: Potion effects should never explode and always apply on self
|
Bug #8018: Potion effects should never explode and always apply on self
|
||||||
|
Bug #8021: Player's scale doesn't reset when starting a new game
|
||||||
Feature #1415: Infinite fall failsafe
|
Feature #1415: Infinite fall failsafe
|
||||||
Feature #2566: Handle NAM9 records for manual cell references
|
Feature #2566: Handle NAM9 records for manual cell references
|
||||||
Feature #3537: Shader-based water ripples
|
Feature #3537: Shader-based water ripples
|
||||||
|
@ -242,6 +242,11 @@ namespace MWWorld
|
|||||||
|
|
||||||
void Player::clear()
|
void Player::clear()
|
||||||
{
|
{
|
||||||
|
ESM::CellRef cellRef;
|
||||||
|
cellRef.blank();
|
||||||
|
cellRef.mRefID = ESM::RefId::stringRefId("Player");
|
||||||
|
cellRef.mRefNum = mPlayer.mRef.getRefNum();
|
||||||
|
mPlayer = LiveCellRef<ESM::NPC>(cellRef, mPlayer.mBase);
|
||||||
mCellStore = nullptr;
|
mCellStore = nullptr;
|
||||||
mSign = ESM::RefId();
|
mSign = ESM::RefId();
|
||||||
mMarkedCell = nullptr;
|
mMarkedCell = nullptr;
|
||||||
|
@ -426,8 +426,6 @@ namespace MWWorld
|
|||||||
if (mPlayer)
|
if (mPlayer)
|
||||||
{
|
{
|
||||||
mPlayer->clear();
|
mPlayer->clear();
|
||||||
mPlayer->setCell(nullptr);
|
|
||||||
mPlayer->getPlayer().getRefData() = RefData();
|
|
||||||
mPlayer->set(mStore.get<ESM::NPC>().find(ESM::RefId::stringRefId("Player")));
|
mPlayer->set(mStore.get<ESM::NPC>().find(ESM::RefId::stringRefId("Player")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user