diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-01-10 17:19:24 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-01-10 17:20:33 +0100 |
commit | f5a394a5051384a930d635da22ccafc6beb1cb84 (patch) | |
tree | d28fc14408a6bb91170e05880b4d2af6a17fcc14 /src/particleemitterprop.h | |
parent | 5757066312cab082378dbc5d8df97dea3fe40af0 (diff) | |
download | mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.gz mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.bz2 mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.xz mana-f5a394a5051384a930d635da22ccafc6beb1cb84.zip |
Change code style
Diffstat (limited to 'src/particleemitterprop.h')
-rw-r--r-- | src/particleemitterprop.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 <typename T> 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: |