forked from teamnwah/openmw-tes3coop
World constructor fixes
This commit is contained in:
parent
7e100c36b5
commit
642653d10e
2 changed files with 8 additions and 9 deletions
|
@ -178,10 +178,11 @@ namespace MWWorld
|
||||||
const Files::Collections& fileCollections,
|
const Files::Collections& fileCollections,
|
||||||
const std::vector<std::string>& master, const std::vector<std::string>& plugins,
|
const std::vector<std::string>& master, const std::vector<std::string>& plugins,
|
||||||
const boost::filesystem::path& resDir, const boost::filesystem::path& cacheDir, bool newGame,
|
const boost::filesystem::path& resDir, const boost::filesystem::path& cacheDir, bool newGame,
|
||||||
ToUTF8::Utf8Encoder* encoder, std::map<std::string,std::string> fallbackMap, int mActivationDistanceOverride)
|
ToUTF8::Utf8Encoder* encoder, const std::map<std::string,std::string>& fallbackMap, int mActivationDistanceOverride)
|
||||||
: mPlayer (0), mLocalScripts (mStore), mGlobalVariables (0),
|
: mPlayer (0), mLocalScripts (mStore), mGlobalVariables (0),
|
||||||
mSky (true), mCells (mStore, mEsm),
|
mSky (true), mCells (mStore, mEsm),
|
||||||
mNumFacing(0), mActivationDistanceOverride (mActivationDistanceOverride)
|
mNumFacing(0), mActivationDistanceOverride (mActivationDistanceOverride),
|
||||||
|
mFallback (fallbackMap)
|
||||||
{
|
{
|
||||||
mPhysics = new PhysicsSystem(renderer);
|
mPhysics = new PhysicsSystem(renderer);
|
||||||
mPhysEngine = mPhysics->getEngine();
|
mPhysEngine = mPhysics->getEngine();
|
||||||
|
@ -247,8 +248,6 @@ namespace MWWorld
|
||||||
|
|
||||||
mWorldScene = new Scene(*mRendering, mPhysics);
|
mWorldScene = new Scene(*mRendering, mPhysics);
|
||||||
|
|
||||||
setFallbackValues(fallbackMap);
|
|
||||||
|
|
||||||
lastTick = mTimer.getMilliseconds();
|
lastTick = mTimer.getMilliseconds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ namespace MWWorld
|
||||||
const Files::Collections& fileCollections,
|
const Files::Collections& fileCollections,
|
||||||
const std::vector<std::string>& master, const std::vector<std::string>& plugins,
|
const std::vector<std::string>& master, const std::vector<std::string>& plugins,
|
||||||
const boost::filesystem::path& resDir, const boost::filesystem::path& cacheDir, bool newGame,
|
const boost::filesystem::path& resDir, const boost::filesystem::path& cacheDir, bool newGame,
|
||||||
ToUTF8::Utf8Encoder* encoder, std::map<std::string,std::string> fallbackMap, int mActivationDistanceOverride);
|
ToUTF8::Utf8Encoder* encoder, const std::map<std::string,std::string>& fallbackMap, int mActivationDistanceOverride);
|
||||||
|
|
||||||
virtual ~World();
|
virtual ~World();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue