From: Florian Forster Date: Sun, 28 Feb 2010 11:10:44 +0000 (+0000) Subject: badguy/haywire.cpp: Use BadGuy::get_nearest_player(). X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6fa15ae7e414bb51ba83b7f4af8aca60444d3399;p=supertux.git badguy/haywire.cpp: Use BadGuy::get_nearest_player(). Rather than calling Sector::get_nearest_player() directly. SVN-Revision: 6452 --- 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;