Changed possible location to use Terrain::collidesx
authorsaiam
Mon, 01 Dec 2008 23:58:34 +0000
changeset 172 51b470384ad9
parent 171 05f1c957e776
child 173 4251f8fa447d
Changed possible location to use Terrain::collidesx
src/proto2/Physics.cc
--- a/src/proto2/Physics.cc	Mon Dec 01 23:51:18 2008 +0000
+++ b/src/proto2/Physics.cc	Mon Dec 01 23:58:34 2008 +0000
@@ -92,7 +92,7 @@
 
 bool PhysicsObject::possibleLocation (Vector loc) {
     for(unsigned int i = 0; i < this->shape.size(); i++) {
-        if(world.getType(loc+shape[i]) != EMPTY)
+        if(world.collides(loc+shape[i]))
             return false;
     }
     return true;