projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7093c
)
badguy/haywire.cpp: Use BadGuy::get_nearest_player().
author
Florian Forster
<supertux@octo.it>
Sun, 28 Feb 2010 11:10:44 +0000
(11:10 +0000)
committer
Florian Forster
<supertux@octo.it>
Sun, 28 Feb 2010 11:10:44 +0000
(11:10 +0000)
Rather than calling Sector::get_nearest_player() directly.
SVN-Revision: 6452
src/badguy/haywire.cpp
patch
|
blob
|
history
diff --git
a/src/badguy/haywire.cpp
b/src/badguy/haywire.cpp
index
f0aaa39
..
b07c569
100644
(file)
--- 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;