Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-04-26 12:16:12 +0000
committerStijn Buys <ingar@osirion.org>2009-04-26 12:16:12 +0000
commit5c1e2000231e0348ad155d304e447aad1ff309af (patch)
tree5a7a8b408b2811abc1e64910d3e163db838a0f5f /src
parentda36f97e1d764e1125deba86a403eee66e937d0b (diff)
mouse cursor no longer hoovers invalid targets
Diffstat (limited to 'src')
-rw-r--r--src/client/targets.cc2
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;