mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 08:15:34 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
46b4b3027b
4 changed files with 19 additions and 3 deletions
|
@ -220,7 +220,7 @@ void MWMechanics::NpcStats::increaseSkill(int skillIndex, const ESM::Class &clas
|
||||||
std::stringstream message;
|
std::stringstream message;
|
||||||
message << boost::format(MWBase::Environment::get().getWindowManager ()->getGameSettingString ("sNotifyMessage39", ""))
|
message << boost::format(MWBase::Environment::get().getWindowManager ()->getGameSettingString ("sNotifyMessage39", ""))
|
||||||
% std::string("#{" + ESM::Skill::sSkillNameIds[skillIndex] + "}")
|
% std::string("#{" + ESM::Skill::sSkillNameIds[skillIndex] + "}")
|
||||||
% base;
|
% static_cast<int> (base);
|
||||||
MWBase::Environment::get().getWindowManager ()->messageBox(message.str(), std::vector<std::string>());
|
MWBase::Environment::get().getWindowManager ()->messageBox(message.str(), std::vector<std::string>());
|
||||||
|
|
||||||
if (mLevelProgress >= 10)
|
if (mLevelProgress >= 10)
|
||||||
|
|
|
@ -313,7 +313,12 @@ void FFmpeg_Decoder::close()
|
||||||
mStreams.erase(mStreams.begin());
|
mStreams.erase(mStreams.begin());
|
||||||
}
|
}
|
||||||
if(mFormatCtx)
|
if(mFormatCtx)
|
||||||
|
{
|
||||||
|
AVIOContext* context = mFormatCtx->pb;
|
||||||
|
av_free(context);
|
||||||
|
mFormatCtx->pb = NULL;
|
||||||
av_close_input_file(mFormatCtx);
|
av_close_input_file(mFormatCtx);
|
||||||
|
}
|
||||||
mFormatCtx = NULL;
|
mFormatCtx = NULL;
|
||||||
|
|
||||||
mDataStream.setNull();
|
mDataStream.setNull();
|
||||||
|
|
|
@ -287,6 +287,16 @@ namespace MWWorld
|
||||||
public:
|
public:
|
||||||
typedef SharedIterator<ESM::Land> iterator;
|
typedef SharedIterator<ESM::Land> iterator;
|
||||||
|
|
||||||
|
virtual ~Store<ESM::Land>()
|
||||||
|
{
|
||||||
|
for (std::vector<ESM::Land *>::const_iterator it =
|
||||||
|
mStatic.begin(); it != mStatic.end(); ++it)
|
||||||
|
{
|
||||||
|
delete *it;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
int getSize() const {
|
int getSize() const {
|
||||||
return mStatic.size();
|
return mStatic.size();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#define gammaCorrectRead(v) pow(v, float3(gammaCorrection,gammaCorrection,gammaCorrection))
|
#define gammaCorrectRead(v) pow(max(v, 0.00001f), float3(gammaCorrection,gammaCorrection,gammaCorrection))
|
||||||
#define gammaCorrectOutput(v) pow(v, float3(1.f/gammaCorrection,1.f/gammaCorrection,1.f/gammaCorrection))
|
#define gammaCorrectOutput(v) pow(max(v, 0.00001f), float3(1.f/gammaCorrection,1.f/gammaCorrection,1.f/gammaCorrection))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if SH_HLSL == 1 || SH_CG == 1
|
#if SH_HLSL == 1 || SH_CG == 1
|
||||||
|
|
Loading…
Reference in a new issue