summaryrefslogtreecommitdiff
path: root/src/particle/particleengine.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-26 00:10:52 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-26 13:53:30 +0300
commit35d6f9c1086d84a479bab84f07f8c9dae266f4ca (patch)
tree632b84779ac9b9ce20b60f99272f4a4c241b0b74 /src/particle/particleengine.cpp
parent6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9 (diff)
downloadplus-35d6f9c1086d84a479bab84f07f8c9dae266f4ca.tar.gz
plus-35d6f9c1086d84a479bab84f07f8c9dae266f4ca.tar.bz2
plus-35d6f9c1086d84a479bab84f07f8c9dae266f4ca.tar.xz
plus-35d6f9c1086d84a479bab84f07f8c9dae266f4ca.zip
Fix code style.
Diffstat (limited to 'src/particle/particleengine.cpp')
-rw-r--r--src/particle/particleengine.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/particle/particleengine.cpp b/src/particle/particleengine.cpp
index d03d7c512..2f82e7704 100644
--- a/src/particle/particleengine.cpp
+++ b/src/particle/particleengine.cpp
@@ -20,10 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "particle/particle.h"
-
#include "configuration.h"
-#include "logger.h"
#include "gui/viewport.h"
@@ -37,13 +34,11 @@
#include "resources/dye/dye.h"
#include "utils/dtor.h"
-#include "utils/mathutils.h"
#include "debug.h"
ParticleEngine *particleEngine = nullptr;
-class Graphics;
class Image;
int ParticleEngine::particleCount = 0;
@@ -72,7 +67,8 @@ void ParticleEngine::setupEngine() restrict2
{
ParticleEngine::maxCount = config.getIntValue("particleMaxCount");
ParticleEngine::fastPhysics = config.getIntValue("particleFastPhysics");
- ParticleEngine::emitterSkip = config.getIntValue("particleEmitterSkip") + 1;
+ ParticleEngine::emitterSkip =
+ config.getIntValue("particleEmitterSkip") + 1;
if (!ParticleEngine::emitterSkip)
ParticleEngine::emitterSkip = 1;
ParticleEngine::enabled = config.getBoolValue("particleeffects");
@@ -306,7 +302,8 @@ Particle *ParticleEngine::addTextRiseFadeOutEffect(const std::string &restrict
const Color *restrict const
color,
Font *restrict const font,
- const bool outline) restrict2
+ const bool outline)
+ restrict2
{
Particle *const newParticle = new TextParticle(
text,