aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltracker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltracker.cpp')
-rw-r--r--linden/indra/newview/lltracker.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/linden/indra/newview/lltracker.cpp b/linden/indra/newview/lltracker.cpp
index b5854c8..8572283 100644
--- a/linden/indra/newview/lltracker.cpp
+++ b/linden/indra/newview/lltracker.cpp
@@ -90,7 +90,8 @@ LLTracker::LLTracker()
90 mHasLandmarkPosition(FALSE), 90 mHasLandmarkPosition(FALSE),
91 mLandmarkHasBeenVisited(FALSE), 91 mLandmarkHasBeenVisited(FALSE),
92 mTrackedLocationName( "" ), 92 mTrackedLocationName( "" ),
93 mIsTrackingLocation(FALSE) 93 mIsTrackingLocation(FALSE),
94 mHasReachedLocation(FALSE)
94{ } 95{ }
95 96
96 97
@@ -284,7 +285,7 @@ void LLTracker::render3D()
284 285
285 286
286// static 287// static
287void LLTracker::trackAvatar( const LLUUID& avatar_id, const LLString& name ) 288void LLTracker::trackAvatar( const LLUUID& avatar_id, const std::string& name )
288{ 289{
289 instance()->stopTrackingLandmark(); 290 instance()->stopTrackingLandmark();
290 instance()->stopTrackingLocation(); 291 instance()->stopTrackingLocation();
@@ -296,7 +297,7 @@ void LLTracker::trackAvatar( const LLUUID& avatar_id, const LLString& name )
296 297
297 298
298// static 299// static
299void LLTracker::trackLandmark( const LLUUID& asset_id, const LLUUID& item_id, const LLString& name) 300void LLTracker::trackLandmark( const LLUUID& asset_id, const LLUUID& item_id, const std::string& name)
300{ 301{
301 instance()->stopTrackingAvatar(); 302 instance()->stopTrackingAvatar();
302 instance()->stopTrackingLocation(); 303 instance()->stopTrackingLocation();
@@ -311,7 +312,7 @@ void LLTracker::trackLandmark( const LLUUID& asset_id, const LLUUID& item_id, co
311 312
312 313
313// static 314// static
314void LLTracker::trackLocation(const LLVector3d& pos_global, const LLString& full_name, const LLString& tooltip, ETrackingLocationType location_type) 315void LLTracker::trackLocation(const LLVector3d& pos_global, const std::string& full_name, const std::string& tooltip, ETrackingLocationType location_type)
315{ 316{
316 instance()->stopTrackingAvatar(); 317 instance()->stopTrackingAvatar();
317 instance()->stopTrackingLandmark(); 318 instance()->stopTrackingLandmark();
@@ -397,7 +398,7 @@ BOOL LLTracker::hasLandmarkPosition()
397 398
398 399
399// static 400// static
400const LLString& LLTracker::getTrackedLocationName() 401const std::string& LLTracker::getTrackedLocationName()
401{ 402{
402 return instance()->mTrackedLocationName; 403 return instance()->mTrackedLocationName;
403} 404}
@@ -556,8 +557,8 @@ void LLTracker::renderBeacon(LLVector3d pos_global,
556 //gCylinder.render(1000); 557 //gCylinder.render(1000);
557 glPopMatrix(); 558 glPopMatrix();
558 559
559 char text[1024]; /* Flawfinder: ignore */ 560 std::string text;
560 snprintf(text, sizeof(text), "%.0f m", to_vec.magVec()); /* Flawfinder: ignore */ 561 text = llformat( "%.0f m", to_vec.magVec());
561 562
562 LLWString wstr; 563 LLWString wstr;
563 wstr += utf8str_to_wstring(label); 564 wstr += utf8str_to_wstring(label);