mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-25 09:02:37 +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;
|
mTimeToNextEnvSound = mMinTimeBetweenSounds + (mMaxTimeBetweenSounds - mMinTimeBetweenSounds) * a;
|
||||||
mTimePassed = 0;
|
mTimePassed = 0;
|
||||||
|
|
||||||
if (mLastRegionName != regionName)
|
|
||||||
{
|
|
||||||
mLastRegionName = regionName;
|
|
||||||
mSumChance = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
const ESM::Region* const region
|
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)
|
if (region == nullptr)
|
||||||
return {};
|
return {};
|
||||||
|
@ -2,12 +2,6 @@
|
|||||||
#define GAME_SOUND_REGIONSOUNDSELECTOR_H
|
#define GAME_SOUND_REGIONSOUNDSELECTOR_H
|
||||||
|
|
||||||
#include <components/esm/refid.hpp>
|
#include <components/esm/refid.hpp>
|
||||||
#include <string>
|
|
||||||
|
|
||||||
namespace MWBase
|
|
||||||
{
|
|
||||||
class World;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace MWSound
|
namespace MWSound
|
||||||
{
|
{
|
||||||
@ -20,8 +14,6 @@ namespace MWSound
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
float mTimeToNextEnvSound = 0.0f;
|
float mTimeToNextEnvSound = 0.0f;
|
||||||
int mSumChance = 0;
|
|
||||||
ESM::RefId mLastRegionName;
|
|
||||||
float mTimePassed = 0.0;
|
float mTimePassed = 0.0;
|
||||||
float mMinTimeBetweenSounds;
|
float mMinTimeBetweenSounds;
|
||||||
float mMaxTimeBetweenSounds;
|
float mMaxTimeBetweenSounds;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user