diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-08 08:35:21 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-08 08:35:21 -0500 |
commit | 49411238b04f3510d18617d1498622cf199c617d (patch) | |
tree | 2cd27693a1a4924d5332f592f666ea49a159544e /src/world.cpp | |
parent | fdd51ab588a2ec9fca54215039803d187a10178e (diff) |
documentation, dialog box borders
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/world.cpp b/src/world.cpp index 1e37a78..13605da 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -277,11 +277,13 @@ void World::update(Player *p,unsigned int delta){ */ for(auto &e : entity){ - if(e->type != STRUCTURET) - e->loc.x += e->vel.x * delta; + if(e->type != STRUCTURET){ + if(e->canMove) + e->loc.x += e->vel.x * delta; e->loc.y += e->vel.y * delta; if(e->vel.x < 0)e->left = true; else if(e->vel.x > 0)e->left = false; + } } } |