This commit is contained in:
Kuyondo 2025-07-28 18:41:07 +08:00
parent f3d23dc57e
commit 1b7b322bac
4 changed files with 9 additions and 4 deletions

View File

@ -298,6 +298,11 @@ namespace
iter->mData.enable();
MWBase::Environment::get().getWorld()->disable(ptr);
}
else
{
if (state.mVersion < ESM::OpenMW0_50SaveGameFormatVersion)
iter->mData.flagAsResolved();
}
MWBase::Environment::get().getWorldModel()->registerPtr(ptr);
return;
}

View File

@ -20,7 +20,7 @@ namespace
// can then be handled by a script.
Flag_OnActivate = 2,
Flag_ActivationBuffered = 4,
Flag_Resolved = 8,
Flag_Resolved = 8
};
}
@ -134,7 +134,7 @@ namespace MWWorld
try
{
copy(refData);
mFlags &= ~(Flag_SuppressActivate | Flag_OnActivate | Flag_ActivationBuffered);
mFlags &= ~(Flag_SuppressActivate | Flag_OnActivate | Flag_ActivationBuffered | Flag_Resolved);
}
catch (...)
{

View File

@ -1134,7 +1134,7 @@ namespace MWWorld
{
const VFS::Path::Normalized meshPath = useAnim
? Misc::ResourceHelpers::correctActorModelPath(
VFS::Path::toNormalized(mesh), mRendering.getResourceSystem()->getVFS())
VFS::Path::toNormalized(mesh), mRendering.getResourceSystem()->getVFS())
: VFS::Path::toNormalized(mesh);
if (mRendering.getResourceSystem()->getSceneManager()->checkLoaded(meshPath, mRendering.getReferenceTime()))

View File

@ -28,7 +28,7 @@ namespace ESM
inline constexpr FormatVersion MaxOldCountFormatVersion = 30;
inline constexpr FormatVersion MaxActiveSpellTypeVersion = 31;
inline constexpr FormatVersion MaxPlayerBeforeCellDataFormatVersion = 32;
inline constexpr FormatVersion CurrentSaveGameFormatVersion = 34;
inline constexpr FormatVersion CurrentSaveGameFormatVersion = 35;
inline constexpr FormatVersion MinSupportedSaveGameFormatVersion = 5;
inline constexpr FormatVersion OpenMW0_48SaveGameFormatVersion = 21;