|
|
@ -157,12 +157,12 @@ namespace MWWorld
|
|
|
|
const Files::Collections& fileCollections,
|
|
|
|
const Files::Collections& fileCollections,
|
|
|
|
const std::vector<std::string>& contentFiles,
|
|
|
|
const std::vector<std::string>& contentFiles,
|
|
|
|
ToUTF8::Utf8Encoder* encoder, const std::map<std::string,std::string>& fallbackMap,
|
|
|
|
ToUTF8::Utf8Encoder* encoder, const std::map<std::string,std::string>& fallbackMap,
|
|
|
|
int activationDistanceOverride, const std::string& startCell, const std::string& startupScript,
|
|
|
|
int activationDistanceOverride, const std::string& startCell,
|
|
|
|
const std::string& resourcePath, const std::string& userDataPath)
|
|
|
|
const std::string& resourcePath, const std::string& userDataPath)
|
|
|
|
: mResourceSystem(resourceSystem), mFallback(fallbackMap), mLocalScripts (mStore),
|
|
|
|
: mResourceSystem(resourceSystem), mFallback(fallbackMap), mLocalScripts (mStore),
|
|
|
|
mSky (true), mCells (mStore, mEsm),
|
|
|
|
mSky (true), mCells (mStore, mEsm),
|
|
|
|
mGodMode(false), mScriptsEnabled(true), mContentFiles (contentFiles), mUserDataPath(userDataPath),
|
|
|
|
mGodMode(false), mScriptsEnabled(true), mContentFiles (contentFiles), mUserDataPath(userDataPath),
|
|
|
|
mActivationDistanceOverride (activationDistanceOverride), mStartupScript(startupScript),
|
|
|
|
mActivationDistanceOverride (activationDistanceOverride),
|
|
|
|
mStartCell (startCell), mDistanceToFacedObject(-1), mTeleportEnabled(true),
|
|
|
|
mStartCell (startCell), mDistanceToFacedObject(-1), mTeleportEnabled(true),
|
|
|
|
mLevitationEnabled(true), mGoToJail(false), mDaysInPrison(0),
|
|
|
|
mLevitationEnabled(true), mGoToJail(false), mDaysInPrison(0),
|
|
|
|
mPlayerTraveling(false), mPlayerInJail(false), mSpellPreloadTimer(0.f)
|
|
|
|
mPlayerTraveling(false), mPlayerInJail(false), mSpellPreloadTimer(0.f)
|
|
|
@ -307,9 +307,6 @@ namespace MWWorld
|
|
|
|
if (!mPhysics->toggleCollisionMode())
|
|
|
|
if (!mPhysics->toggleCollisionMode())
|
|
|
|
mPhysics->toggleCollisionMode();
|
|
|
|
mPhysics->toggleCollisionMode();
|
|
|
|
|
|
|
|
|
|
|
|
if (!mStartupScript.empty())
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->executeInConsole(mStartupScript);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->updatePlayer();
|
|
|
|
MWBase::Environment::get().getWindowManager()->updatePlayer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|