From f5a394a5051384a930d635da22ccafc6beb1cb84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Jan 2010 17:19:24 +0200 Subject: Change code style --- src/particleemitterprop.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/particleemitterprop.h') diff --git a/src/particleemitterprop.h b/src/particleemitterprop.h index e68ac222..4fbdd578 100644 --- a/src/particleemitterprop.h +++ b/src/particleemitterprop.h @@ -77,18 +77,18 @@ template struct ParticleEmitterProp if ((tick%changePeriod) * 2 < changePeriod) { val += changeAmplitude - (T)((tick%changePeriod) / (double)changePeriod) * changeAmplitude * 4; - } else { + } + else + { val += changeAmplitude * -3 + (T)((tick%changePeriod) / (double)changePeriod) * changeAmplitude * 4; // I have no idea why this works but it does } break; case FUNC_SQUARE: if ((tick%changePeriod) * 2 < changePeriod) - { val += changeAmplitude; - } else { + else val -= changeAmplitude; - } break; case FUNC_NONE: default: -- cgit v1.2.3-70-g09d2