[Client] Don't set difficulty based on client settings

This commit is contained in:
David Cernat 2017-06-10 15:29:09 +03:00
parent 70d9374a6a
commit 1ae5bd19e1

View file

@ -15,6 +15,16 @@ float scaleDamage(float damage, const MWWorld::Ptr& attacker, const MWWorld::Ptr
// [-100, 100] // [-100, 100]
int difficultySetting = Settings::Manager::getInt("difficulty", "Game"); int difficultySetting = Settings::Manager::getInt("difficulty", "Game");
/*
Start of tes3mp change (major)
Don't set difficulty based on client settings
*/
difficultySetting = 0;
/*
End of tes3mp change (major)
*/
static const float fDifficultyMult = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fDifficultyMult")->getFloat(); static const float fDifficultyMult = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fDifficultyMult")->getFloat();
float difficultyTerm = 0.01f * difficultySetting; float difficultyTerm = 0.01f * difficultySetting;