mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 02:09:41 +00:00
Initialize missing struct fields
This commit is contained in:
parent
e5a81b1f99
commit
d5bcc49079
5 changed files with 19 additions and 15 deletions
|
@ -526,7 +526,10 @@ public:
|
|||
class ConvertGAME : public Converter
|
||||
{
|
||||
public:
|
||||
ConvertGAME() : mHasGame(false) {}
|
||||
ConvertGAME()
|
||||
: mHasGame(false)
|
||||
{
|
||||
}
|
||||
|
||||
virtual void read(ESM::ESMReader &esm)
|
||||
{
|
||||
|
|
|
@ -14,13 +14,13 @@ namespace ESSImport
|
|||
{
|
||||
struct GMDT
|
||||
{
|
||||
char mCellName[64];
|
||||
int mFogColour;
|
||||
float mFogDensity;
|
||||
int mCurrentWeather, mNextWeather;
|
||||
int mWeatherTransition; // 0-100 transition between weathers, top 3 bytes may be garbage
|
||||
float mTimeOfNextTransition; // weather changes when gamehour == timeOfNextTransition
|
||||
int mMasserPhase, mSecundaPhase; // top 3 bytes may be garbage
|
||||
char mCellName[64] {};
|
||||
int mFogColour {0};
|
||||
float mFogDensity {0.f};
|
||||
int mCurrentWeather {0}, mNextWeather {0};
|
||||
int mWeatherTransition {0}; // 0-100 transition between weathers, top 3 bytes may be garbage
|
||||
float mTimeOfNextTransition {0.f}; // weather changes when gamehour == timeOfNextTransition
|
||||
int mMasserPhase {0}, mSecundaPhase {0}; // top 3 bytes may be garbage
|
||||
};
|
||||
|
||||
GMDT mGMDT;
|
||||
|
|
|
@ -1483,7 +1483,8 @@ void OpenAL_Output::resumeSounds(int types)
|
|||
|
||||
|
||||
OpenAL_Output::OpenAL_Output(SoundManager &mgr)
|
||||
: Sound_Output(mgr), mDevice(0), mContext(0)
|
||||
: Sound_Output(mgr)
|
||||
, mDevice(0), mContext(0)
|
||||
, mListenerPos(0.0f, 0.0f, 0.0f), mListenerEnv(Env_Normal)
|
||||
, mWaterFilter(0), mWaterEffect(0), mDefaultEffect(0), mEffectSlot(0)
|
||||
, mStreamThread(new StreamThread)
|
||||
|
|
|
@ -26,10 +26,10 @@ namespace MWSound
|
|||
struct {
|
||||
bool EXT_EFX : 1;
|
||||
bool SOFT_HRTF : 1;
|
||||
} ALC;
|
||||
} ALC = {false, false};
|
||||
struct {
|
||||
bool SOFT_source_spatialize : 1;
|
||||
} AL;
|
||||
} AL = {false};
|
||||
|
||||
typedef std::deque<ALuint> IDDq;
|
||||
IDDq mFreeSources;
|
||||
|
|
|
@ -78,14 +78,14 @@ struct Cell
|
|||
|
||||
struct DATAstruct
|
||||
{
|
||||
int mFlags;
|
||||
int mX, mY;
|
||||
int mFlags {0};
|
||||
int mX {0}, mY {0};
|
||||
};
|
||||
|
||||
struct AMBIstruct
|
||||
{
|
||||
Color mAmbient, mSunlight, mFog;
|
||||
float mFogDensity;
|
||||
Color mAmbient {0}, mSunlight {0}, mFog {0};
|
||||
float mFogDensity {0.f};
|
||||
};
|
||||
|
||||
Cell() : mName(""),
|
||||
|
|
Loading…
Reference in a new issue