From 2c97bb5f68c37189f315ac913558bf2dc30b594c Mon Sep 17 00:00:00 2001 From: mathnerd314 Date: Fri, 12 Feb 2010 05:33:20 +0000 Subject: [PATCH] Pass Vector by value git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6325 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- src/supertux/sector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.11.0