diff options
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) |