Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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++) {