mirror of https://github.com/AxioDL/metaforce.git
CParticleGlobals: Initialize all data members
Provides a deterministic initial state.
This commit is contained in:
parent
9d6b9142bb
commit
7d42b2d763
|
@ -13,8 +13,9 @@
|
||||||
namespace urde {
|
namespace urde {
|
||||||
class CElementGen;
|
class CElementGen;
|
||||||
class CParticleGlobals {
|
class CParticleGlobals {
|
||||||
CParticleGlobals()=default;
|
CParticleGlobals() = default;
|
||||||
static std::unique_ptr<CParticleGlobals> g_ParticleGlobals;
|
static std::unique_ptr<CParticleGlobals> g_ParticleGlobals;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int m_EmitterTime = 0;
|
int m_EmitterTime = 0;
|
||||||
float m_EmitterTimeReal = 0.f;
|
float m_EmitterTimeReal = 0.f;
|
||||||
|
@ -48,7 +49,7 @@ public:
|
||||||
CElementGen* x4_system;
|
CElementGen* x4_system;
|
||||||
};
|
};
|
||||||
|
|
||||||
SParticleSystem* m_currentParticleSystem;
|
SParticleSystem* m_currentParticleSystem = nullptr;
|
||||||
|
|
||||||
static CParticleGlobals* instance() {
|
static CParticleGlobals* instance() {
|
||||||
if (!g_ParticleGlobals)
|
if (!g_ParticleGlobals)
|
||||||
|
|
Loading…
Reference in New Issue