Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 384c793..b87f056 100644
--- a/src/client/targets.cc
+++ b/src/client/targets.cc
@@ -50,7 +50,7 @@ bool is_legal_target(core::Entity *entity)
if (entity->type() != core::Entity::Controlable) {
return entity->state()->visible();
- } else if (entity->state()->distance() < core::range::max) {
+ } else if (entity->state()->distance() < core::range::visible) {
return true;
}
}