diff options
author | Richard Linden <none@none> | 2013-04-11 19:17:55 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-04-11 19:17:55 -0700 |
commit | 2436bd9487ac62899ed01859bdd4c0871020d4f7 (patch) | |
tree | 283368b1ff05b4cbdcd52b9e3c103081178006ac /indra/newview/llviewermessage.cpp | |
parent | bdc6d58b7e84bc81977148995b0028f7420eee65 (diff) | |
parent | 288b43facb89184cc8fced7e7542baa2c8549831 (diff) |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-interesting-metrics
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rwxr-xr-x | indra/newview/llviewermessage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 4b1c9c5574..8dc72ba5b4 100755 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -4222,6 +4222,9 @@ void send_agent_update(BOOL force_send, BOOL send_reliable) LLQuaternion head_rotation = gAgent.getHeadRotation(); camera_pos_agent = gAgentCamera.getCameraPositionAgent(); + LLVector3 camera_velocity = LLViewerCamera::getInstance()->getVelocityDir() * LLViewerCamera::getInstance()->getAverageSpeed(); + F32 time_delta = 1.0f; //predict the camera position in 1 second + camera_pos_agent += camera_velocity * time_delta; render_state = gAgent.getRenderState(); |