From: Mathnerd314 Date: Fri, 12 Feb 2010 05:33:20 +0000 (+0000) Subject: Pass Vector by value X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2937de56e7f91ca0018f8cb47ba30be94a2bb6ba;p=supertux.git Pass Vector by value SVN-Revision: 6325 --- diff --git a/src/supertux/sector.cpp b/src/supertux/sector.cpp index 7e8f4700b..571e2b446 100644 --- a/src/supertux/sector.cpp +++ b/src/supertux/sector.cpp @@ -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;