diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-02 16:21:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-02 16:35:24 +0300 |
commit | e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6 (patch) | |
tree | 9765a6516e4a6e284ed7b589090db7f1f4cd80ea /src/particleemitterprop.h | |
parent | 962f182fcc989ec587282e44f889188ce241ba31 (diff) | |
download | plus-e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6.tar.gz plus-e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6.tar.bz2 plus-e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6.tar.xz plus-e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6.zip |
Add const to more classes.
Diffstat (limited to 'src/particleemitterprop.h')
-rw-r--r-- | src/particleemitterprop.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/particleemitterprop.h b/src/particleemitterprop.h index 2b6b7ba1a..354cb0229 100644 --- a/src/particleemitterprop.h +++ b/src/particleemitterprop.h @@ -45,13 +45,13 @@ template <typename T> struct ParticleEmitterProp { } - void set(T min, T max) + void set(const T min, const T max) { minVal = min; maxVal = max; } - void set(T val) + void set(const T val) { set(val, val); } @@ -66,7 +66,7 @@ template <typename T> struct ParticleEmitterProp changePhase = phase; } - T value(int tick) + T value(int tick) const { tick += changePhase; T val = static_cast<T>(minVal + (maxVal - minVal) |