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>2012-11-25 21:28:50 +0000
committerStijn Buys <ingar@osirion.org>2012-11-25 21:28:50 +0000
commit159716799ed0aebb3c30ca156a7c253030ab09b1 (patch)
treef73be49903b6d9ddb80aa0bc4f162b0307e91ff0 /src
parentd4ee190ca1d37174da5692a3f391e12d46fe6ea5 (diff)
Do not select projectiles as target.
Diffstat (limited to 'src')
-rw-r--r--src/client/targets.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/targets.cc b/src/client/targets.cc
index 9137739..c76d621 100644
--- a/src/client/targets.cc
+++ b/src/client/targets.cc
@@ -59,6 +59,8 @@ bool is_valid_hud_target(const core::Entity *entity)
{
if (entity->serverside()) {
return false;
+ } else if (entity->type() == core::Entity::Projectile) {
+ return false;
} else if (entity == core::localcontrol()) {
return false;
} else if (entity->has_flag(core::Entity::ShowOnMap)) {