[STORM-175] Fix Ping Interpolate Object Position

master
Oz Linden 2010-09-16 20:01:35 -04:00
parent fbffeea75b
commit 5215bf9925
2 changed files with 3 additions and 1 deletions

View File

@ -645,6 +645,7 @@ Teardrops Fall
Techwolf Lupindo
SNOW-92
SNOW-649
SNOW-687
SNOW-680
SNOW-681
SNOW-690
@ -655,6 +656,7 @@ Tharax Ferraris
VWR-605
Thickbrick Sleaford
SNOW-207
SNOW-390
SNOW-421
SNOW-462
SNOW-586

View File

@ -1844,7 +1844,7 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
if (cdp)
{
F32 ping_delay = 0.5f * mTimeDilation * ( ((F32)cdp->getPingDelay()) * 0.001f + gFrameDTClamped);
LLVector3 diff = getVelocity() * (0.5f*mTimeDilation*(gFrameDTClamped + ((F32)ping_delay)*0.001f));
LLVector3 diff = getVelocity() * ping_delay;
new_pos_parent += diff;
}
else