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:
parent
1d69d38081
commit
c0578613af
@ -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 {};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user