forgot to return anything on new walk
authornireco
Thu, 04 Dec 2008 15:06:08 +0000
changeset 190 12fea0d2d0df
parent 189 41f8913f7d15
child 191 98fcc0843335
forgot to return anything on new walk
src/GameState.hh
src/Physics.cc
--- a/src/GameState.hh	Thu Dec 04 14:48:01 2008 +0000
+++ b/src/GameState.hh	Thu Dec 04 15:06:08 2008 +0000
@@ -30,6 +30,8 @@
         setShape(shape);
         collision_elasticity = PLAYER_COLLISION_ELASTICITY;
         world.addPlayerObject(this);
+        // TODO: DEBUG: remove
+//        this->position = position-Vector(60, 40);
     }
     
     void debugInfo ();
--- a/src/Physics.cc	Thu Dec 04 14:48:01 2008 +0000
+++ b/src/Physics.cc	Thu Dec 04 15:06:08 2008 +0000
@@ -118,6 +118,7 @@
         walk_one_step((1 < walkAmount ? 1 : walkAmount), right);
         walkAmount--;
     }
+    return reached;
 }
 
 /**