diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-12-16 18:49:09 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-12-16 20:09:13 +0100 |
commit | f862b7ecb1fc9c410a693eac0accf5081830ab5e (patch) | |
tree | 660f1c07d9260349edf83738825408a598097b4d /src/particle.cpp | |
parent | 6b7833deee20e3abb5856d64d7f359d754fea4ca (diff) | |
download | mana-f862b7ecb1fc9c410a693eac0accf5081830ab5e.tar.gz mana-f862b7ecb1fc9c410a693eac0accf5081830ab5e.tar.bz2 mana-f862b7ecb1fc9c410a693eac0accf5081830ab5e.tar.xz mana-f862b7ecb1fc9c410a693eac0accf5081830ab5e.zip |
Stored the cached config value which says if non-crucial particle effects are enabled or not in a static member of class Particle instead of an instanced member of Being.
Diffstat (limited to 'src/particle.cpp')
-rw-r--r-- | src/particle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/particle.cpp b/src/particle.cpp index 42ec84d7..21bcec99 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -49,6 +49,7 @@ int Particle::particleCount = 0; int Particle::maxCount = 0; int Particle::fastPhysics = 0; int Particle::emitterSkip = 1; +bool Particle::enabled = true; const float Particle::PARTICLE_SKY = 800.0f; Particle::Particle(Map *map): @@ -89,6 +90,7 @@ void Particle::setupEngine() Particle::maxCount = (int)config.getValue("particleMaxCount", 3000); Particle::fastPhysics = (int)config.getValue("particleFastPhysics", 0); Particle::emitterSkip = (int)config.getValue("particleEmitterSkip", 1) + 1; + Particle::enabled = (bool)config.getValue("particleeffects", true); disableAutoDelete(); logger->log("Particle engine set up"); } |