projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Icecrusher and Haywire: Use the bounding box to find the nearest player.
[supertux.git]
/
src
/
badguy
/
haywire.cpp
diff --git
a/src/badguy/haywire.cpp
b/src/badguy/haywire.cpp
index
6dff5cc
..
f0aaa39
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_
pos
());
+ Player *p = Sector::current()->get_nearest_player (this->get_
bbox
());
if (p) {
Direction player_dir = LEFT;