supertux/sector.hpp: Add a version of Sector::get_nearest_player() that uses a Rectf.
authorflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sun, 28 Feb 2010 10:53:34 +0000 (10:53 +0000)
committerflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sun, 28 Feb 2010 10:53:34 +0000 (10:53 +0000)
commit74ed154c3136652fbdd79f413ea80dc30f03cdac
tree9975c8a36c77de37ea3385c09ebb7418c70a57ab
parent6c2a4cb4a47ddf6917cf57a6aea6f192be48e976
supertux/sector.hpp: Add a version of Sector::get_nearest_player() that uses a Rectf.

This way the bouding box can be passed to the method. No need to calculate an
anchor point everywhere.

git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6449 837edb03-e0f3-0310-88ca-d4d4e8b29345
src/supertux/sector.hpp