aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/world.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 13605da..2bceba5 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -277,10 +277,9 @@ void World::update(Player *p,unsigned int delta){
*/
for(auto &e : entity){
- if(e->type != STRUCTURET){
- if(e->canMove)
- e->loc.x += e->vel.x * delta;
- e->loc.y += e->vel.y * delta;
+ e->loc.y += e->vel.y * delta;
+ if(e->type != STRUCTURET && e->canMove){
+ e->loc.x += e->vel.x * delta;
if(e->vel.x < 0)e->left = true;
else if(e->vel.x > 0)e->left = false;
}