Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-10-07 21:45:00 +0000
committerStijn Buys <ingar@osirion.org>2012-10-07 21:45:00 +0000
commite065de3bf7f15b895c7a22e9fdbf8125c94406b3 (patch)
tree8b7bfbfb2a12fc79c33ef59d4d326ee1670d2b58 /src/client
parent4131fcb1b53dc85ced61ff2cc41889811c8a2aaf (diff)
Set localcontrol aaim while target tracking.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/targets.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/targets.cc b/src/client/targets.cc
index c3b618d..eff1512 100644
--- a/src/client/targets.cc
+++ b/src/client/targets.cc
@@ -328,6 +328,11 @@ void frame()
Vector3f cursor = render::Camera::eye() + render::Camera::axis().forward() * (render::FRUSTUMFRONT + 0.001);
cursor -= render::Camera::axis().left() * x;
cursor -= render::Camera::axis().up() * y;
+
+ // set aim
+ if (core::localcontrol()) {
+ core::localcontrol()->set_target_aim(cursor);
+ }
//math::Vector3f center = render::Camera::eye() + (render::Camera::axis().forward() * (render::FRUSTUMFRONT + 0.001f));
for (core::Zone::Content::iterator it = zone->content().begin(); it != zone->content().end(); it++) {