aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-06-08 15:48:02 -0700
committerJacek Antonelli2010-06-22 04:44:27 -0500
commit46d2d47ea6dcca6e1ae09b9774c4a4ed58910856 (patch)
treee27ad7ab7856f4b2838d439a533216db99aaad4f /linden/indra/newview
parentUpdated llselectmgr.cpp to snowglobe 1.4 (diff)
downloadmeta-impy-46d2d47ea6dcca6e1ae09b9774c4a4ed58910856.zip
meta-impy-46d2d47ea6dcca6e1ae09b9774c4a4ed58910856.tar.gz
meta-impy-46d2d47ea6dcca6e1ae09b9774c4a4ed58910856.tar.bz2
meta-impy-46d2d47ea6dcca6e1ae09b9774c4a4ed58910856.tar.xz
Fixed radar spam regression
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/panelradar.cpp6
-rw-r--r--linden/indra/newview/panelradarentry.cpp26
2 files changed, 13 insertions, 19 deletions
diff --git a/linden/indra/newview/panelradar.cpp b/linden/indra/newview/panelradar.cpp
index 85048fe..9b4c5b4 100644
--- a/linden/indra/newview/panelradar.cpp
+++ b/linden/indra/newview/panelradar.cpp
@@ -261,9 +261,9 @@ void PanelRadar::updateRadarDisplay()
261 } 261 }
262 } 262 }
263 } 263 }
264 if (notify_chat && 264 else if (notify_chat &&
265 (entry->getDistance() < chat_distance) && 265 (entry->getDistance() < chat_distance) &&
266 (entry->getNotified() < RADAR_NOTIFIED_CHAT)) 266 (entry->getNotified() < RADAR_NOTIFIED_CHAT))
267 { 267 {
268 LLChat chat; 268 LLChat chat;
269 LLUIString notify = getString("entering_chat_range"); 269 LLUIString notify = getString("entering_chat_range");
diff --git a/linden/indra/newview/panelradarentry.cpp b/linden/indra/newview/panelradarentry.cpp
index 8accd29..c0773ae 100644
--- a/linden/indra/newview/panelradarentry.cpp
+++ b/linden/indra/newview/panelradarentry.cpp
@@ -60,26 +60,20 @@ void PanelRadarEntry::setPosition(const LLVector3d& position)
60 60
61void PanelRadarEntry::setStatus(const RADAR_STATUS& status) 61void PanelRadarEntry::setStatus(const RADAR_STATUS& status)
62{ 62{
63 if (status <= RADAR_STATUS_AWAY) 63 mStatus = status;
64 {
65 mStatus = status;
66 64
67 if (mStatus != RADAR_STATUS_NONE || mStatusTimer.hasExpired()) 65 if (mStatus != RADAR_STATUS_NONE || mStatusTimer.hasExpired())
68 { 66 {
69 mStatusTimer.start(); 67 mStatusTimer.start();
70 mStatusTimer.setTimerExpirySec(RADAR_STATUS_TIMEOUT); 68 mStatusTimer.setTimerExpirySec(RADAR_STATUS_TIMEOUT);
71 } 69 }
72 else 70 else
73 { 71 {
74 mStatusTimer.stop(); 72 mStatusTimer.stop();
75 }
76 } 73 }
77} 74}
78 75
79void PanelRadarEntry::setNotified(const RADAR_NOTIFIED& notified) 76void PanelRadarEntry::setNotified(const RADAR_NOTIFIED& notified)
80{ 77{
81 if (notified <= RADAR_NOTIFIED_SIM) 78 mNotified = notified;
82 {
83 mNotified = notified;
84 }
85} 79}