1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Remove superfluous members

This commit is contained in:
Evil Eye 2024-03-10 16:58:40 +01:00
parent 1d69d38081
commit c0578613af
2 changed files with 1 additions and 15 deletions

View File

@ -26,14 +26,8 @@ namespace MWSound
mTimeToNextEnvSound = mMinTimeBetweenSounds + (mMaxTimeBetweenSounds - mMinTimeBetweenSounds) * a;
mTimePassed = 0;
if (mLastRegionName != regionName)
{
mLastRegionName = regionName;
mSumChance = 0;
}
const ESM::Region* const region
= MWBase::Environment::get().getESMStore()->get<ESM::Region>().search(mLastRegionName);
= MWBase::Environment::get().getESMStore()->get<ESM::Region>().search(regionName);
if (region == nullptr)
return {};

View File

@ -2,12 +2,6 @@
#define GAME_SOUND_REGIONSOUNDSELECTOR_H
#include <components/esm/refid.hpp>
#include <string>
namespace MWBase
{
class World;
}
namespace MWSound
{
@ -20,8 +14,6 @@ namespace MWSound
private:
float mTimeToNextEnvSound = 0.0f;
int mSumChance = 0;
ESM::RefId mLastRegionName;
float mTimePassed = 0.0;
float mMinTimeBetweenSounds;
float mMaxTimeBetweenSounds;