multiple steps needs position to be set multiple times, if it's done the easy way
authornireco
Thu, 04 Dec 2008 16:58:05 +0000
changeset 193 0c8f0547a423
parent 192 f9b5a75cd8cb
child 194 36048d3250d0
multiple steps needs position to be set multiple times, if it's done the easy way
src/Physics.cc
--- a/src/Physics.cc	Thu Dec 04 16:46:58 2008 +0000
+++ b/src/Physics.cc	Thu Dec 04 16:58:05 2008 +0000
@@ -117,6 +117,7 @@
     while(walkAmount > 0 && !this->inAir) {
         reached = walk_one_step((1 < walkAmount ? 1 : walkAmount), right);
         walkAmount--;
+        this->position = reached;
     }
     // TODO: Should the remaining walkAmount be handled somehow?
     return reached;