aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 971325c..b2e1cfb 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -333,12 +333,12 @@ void World::update(Player *p,unsigned int delta){
}
for(unsigned int i=0;i<particles.size();i++){
- if(particles[i]->kill(deltaTime)){
+ if(particles[i]->kill(delta)){
delete particles[i];
particles.erase(particles.begin()+i);
}else if(particles[i]->canMove){
- particles[i]->loc.y += particles[i]->vely * deltaTime;
- particles[i]->loc.x += particles[i]->velx * deltaTime;
+ particles[i]->loc.y += particles[i]->vely * delta;
+ particles[i]->loc.x += particles[i]->velx * delta;
for(auto &b : build){
if(b->bsubtype==FOUNTAIN){