aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-12 15:51:29 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-12 15:51:29 +0100
commitd4b4a54f919872ef1295890cd36ac46d89a4426d (patch)
treea756abccb2ab1f8c549893dca57541d222ccb8a3 /src/crepe
parent5b1c45c2c3bd695ee8d8b5baa4b1988e24596559 (diff)
removed old code
Diffstat (limited to 'src/crepe')
-rw-r--r--src/crepe/system/ParticleSystem.cpp2
-rw-r--r--src/crepe/system/ParticleSystem.h8
2 files changed, 0 insertions, 10 deletions
diff --git a/src/crepe/system/ParticleSystem.cpp b/src/crepe/system/ParticleSystem.cpp
index 941e502..204afaf 100644
--- a/src/crepe/system/ParticleSystem.cpp
+++ b/src/crepe/system/ParticleSystem.cpp
@@ -43,8 +43,6 @@ void ParticleSystem::update() {
// Check if within boundary
this->check_bounds(emitter, transform);
}
-
- this->update_count = (this->update_count + 1) % this->MAX_UPDATE_COUNT;
}
void ParticleSystem::emit_particle(ParticleEmitter & emitter, const Transform & transform) {
diff --git a/src/crepe/system/ParticleSystem.h b/src/crepe/system/ParticleSystem.h
index 454b65f..95a2bd5 100644
--- a/src/crepe/system/ParticleSystem.h
+++ b/src/crepe/system/ParticleSystem.h
@@ -58,14 +58,6 @@ private:
* \return Random speed.
*/
float generate_random_speed(float min_speed, float max_speed) const;
-
-private:
- //! Counter to count updates to determine how many times emit_particle is
- // called.
- unsigned int update_count = 0;
- //! Determines the lowest amount of emission rate (1000 = 0.001 = 1 particle per 1000
- // updates).
- static constexpr unsigned int MAX_UPDATE_COUNT = 100;
};
} // namespace crepe