From 6fa15ae7e414bb51ba83b7f4af8aca60444d3399 Mon Sep 17 00:00:00 2001 From: Florian Forster 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. SVN-Revision: 6452 --- 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