Pass Vector by value
authormathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Fri, 12 Feb 2010 05:33:20 +0000 (05:33 +0000)
committermathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Fri, 12 Feb 2010 05:33:20 +0000 (05:33 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6325 837edb03-e0f3-0310-88ca-d4d4e8b29345

src/supertux/sector.cpp

index 7e8f470..571e2b4 100644 (file)
@@ -959,7 +959,7 @@ void check_collisions(collision::Constraints* constraints,
 
 /* Returns zero if a unisolid tile is non-solid due to the movement direction,
  * non-zero if the tile is solid due to direction. */
-int check_movement_unisolid (const Vector& movement, const Tile* tile)
+int check_movement_unisolid (Vector movement, const Tile* tile)
 {
   int slope_info;
   double mv_x;
@@ -1281,7 +1281,7 @@ Sector::collision_tilemap(collision::Constraints* constraints,
            * in quotation marks because because the slope's gradient is taken
            * Also, this uses the movement relative to the tilemaps own movement
            * (if any).  --octo */
-          status = check_movement_unisolid (movement - solids->get_movement (), tile);
+          status = check_movement_unisolid (movement - solids->get_movement(), tile);
           /* If zero is returned, the unisolid tile is non-solid. */
           if (status == 0)
             continue;