From 8cbd7343483742e2db3ed7f3c6c2374f29ae27ed Mon Sep 17 00:00:00 2001 From: florianf Date: Sun, 28 Feb 2010 11:10:44 +0000 Subject: [PATCH] badguy/haywire.cpp: Use BadGuy::get_nearest_player(). Rather than calling Sector::get_nearest_player() directly. git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6452 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- src/badguy/haywire.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/badguy/haywire.cpp b/src/badguy/haywire.cpp index f0aaa39b4..b07c56924 100644 --- a/src/badguy/haywire.cpp +++ b/src/badguy/haywire.cpp @@ -131,7 +131,7 @@ Haywire::active_update(float elapsed_time) } if (is_exploding && !turn_around_timer.started()) { - Player *p = Sector::current()->get_nearest_player (this->get_bbox ()); + Player *p = this->get_nearest_player (); if (p) { Direction player_dir = LEFT; -- 2.11.0