diff options
author | Stijn Buys <ingar@osirion.org> | 2009-04-26 12:16:12 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-04-26 12:16:12 +0000 |
commit | 5c1e2000231e0348ad155d304e447aad1ff309af (patch) | |
tree | 5a7a8b408b2811abc1e64910d3e163db838a0f5f /src/client | |
parent | da36f97e1d764e1125deba86a403eee66e937d0b (diff) |
mouse cursor no longer hoovers invalid targets
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/targets.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/targets.cc b/src/client/targets.cc index 2350fce..0bec6c5 100644 --- a/src/client/targets.cc +++ b/src/client/targets.cc @@ -358,7 +358,7 @@ void frame() } // find the current target - if (!core::localplayer()->view() && core::localcontrol()) { + if (!core::localplayer()->view() && core::localcontrol() && is_valid_hud_target(entity)) { if (entity->id() == current_target_id) { current_target = entity; |