diff options
author | Stijn Buys <ingar@osirion.org> | 2012-11-25 21:28:50 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-11-25 21:28:50 +0000 |
commit | 159716799ed0aebb3c30ca156a7c253030ab09b1 (patch) | |
tree | f73be49903b6d9ddb80aa0bc4f162b0307e91ff0 /src/client | |
parent | d4ee190ca1d37174da5692a3f391e12d46fe6ea5 (diff) |
Do not select projectiles as target.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/targets.cc | 2 |
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)) { |