Fix radar and bridge position update

Tue, 21 Feb 2012 19:19:26 -0800

author
Kadah
date
Tue, 21 Feb 2012 19:19:26 -0800
changeset 1601
ae290ae10ffe
parent 1600
b2e9fcf499c5
child 1602
08bf76c5d93b
child 1620
effcdb6dc061

Fix radar and bridge position update

indra/newview/floateravatarlist.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/floateravatarlist.cpp	Tue Dec 13 16:39:11 2011 +0100
     1.2 +++ b/indra/newview/floateravatarlist.cpp	Tue Feb 21 19:19:26 2012 -0800
     1.3 @@ -179,7 +179,8 @@
     1.4  	}
     1.5  
     1.6  	//lgg if we already got a Z value from the bridge, dont over write it here
     1.7 -	if(position.mdV[VZ] == 0.0)
     1.8 +	//KC - if CoarseLocationUpdate z of  1020 is the new 0
     1.9 +	if ((position.mdV[VZ] == 0.0) || (position.mdV[VZ] >= 1020))
    1.10  	{
    1.11  		mPosition.mdV[VX] = position.mdV[VX];
    1.12  		mPosition.mdV[VY] = position.mdV[VY];
    1.13 @@ -1389,7 +1390,8 @@
    1.14  		
    1.15  		LLVector3d delta = position - mypos;
    1.16  		distance = (F32)delta.magVec();
    1.17 -		if(position.mdV[VZ] == 0.0)
    1.18 +		//KC - if CoarseLocationUpdate z of  1020 is the new 0
    1.19 +		if ((position.mdV[VZ] == 0.0) || (position.mdV[VZ] >= 1020))
    1.20  		{
    1.21  			flagForFedUpDistance = true;
    1.22  			distance = 9000;

mercurial