diff options
author | Stijn Buys <ingar@osirion.org> | 2008-08-01 20:56:47 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-08-01 20:56:47 +0000 |
commit | d2f36485dd3fbda7c9eb212ac9ffde919af5f8e1 (patch) | |
tree | c9c717afa45ea0ca251bc0e9454b7ad9c4898dbd /src/client/targets.cc | |
parent | 089cb5f96e400d4ab7c9d8041cb51eb8f118d9c1 (diff) |
revert renderer camera location, fix r_restart
Diffstat (limited to 'src/client/targets.cc')
-rw-r--r-- | src/client/targets.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/targets.cc b/src/client/targets.cc index 541206d..8dc5c07 100644 --- a/src/client/targets.cc +++ b/src/client/targets.cc @@ -364,7 +364,7 @@ void draw_target() + plane_normal.y * (entity->state()->location().y - render::Camera::eye().y) + plane_normal.z * (entity->state()->location().z - render::Camera::eye().z); - Vector3f intersection = (entity->state()->location() - render::Camera::eye()) * t; + Vector3f intersection = render::Camera::eye() + (entity->state()->location() - render::Camera::eye()) * t; // draw the target cursor in the frustum front plane, but in real world coordinates const float r = 0.05; |