src/PhysicsObject.cc
changeset 211 d5d52fb191e4
parent 210 501b5a1918b5
child 221 fbc5db6fce45
--- a/src/PhysicsObject.cc	Fri Dec 05 06:28:25 2008 +0000
+++ b/src/PhysicsObject.cc	Fri Dec 05 11:11:38 2008 +0000
@@ -203,7 +203,7 @@
    
     
     if(!possibleLocation(reached)) {
-        Engine::log(DEBUG, "PhysicsObject.updatePosition") << "logic error reached should not be possible to be impossible.. diffVec: " << diffVec;
+        Engine::log(DEBUG, "PhysicsObject.updatePosition") << "inside ground. diffVec: " << diffVec;
         func1();
     }
 
@@ -216,18 +216,11 @@
         }
     } else {
         newPosition = reached;
+        this->position = newPosition;
         onCollision();
         //TODO: It should be moved before onCollision, for Shots
     }
-    if(!possibleLocation(newPosition)) {
-        Engine::log(DEBUG, "great failure") << "great failure";
-        func1();
-    }
     this->position = newPosition;
-    if(!possibleLocation(position)) {
-        Engine::log(DEBUG, "great failure") << "great failure";
-        func1();
-    }
 //    Engine::log(DEBUG, "PhysicsObject.updatePosition") << "Pos: " << this->position;
 }