diff options
author | Jonathan Yap <none@none> | 2013-12-04 19:38:52 -0500 |
---|---|---|
committer | Jonathan Yap <none@none> | 2013-12-04 19:38:52 -0500 |
commit | 5b40445e663c2237ceeea83827505840cf41b165 (patch) | |
tree | 0fbbb3e8c829b94178c1d1c6df306d6042978309 /indra/newview | |
parent | 787ccaf297e81291469aaf269f563d862fb150a3 (diff) |
STORM-1993 In the About Land floater only send object return time to server when it has been changed
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llfloaterland.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llfloaterland.cpp b/indra/newview/llfloaterland.cpp index 6c8e81e563..b16ef6dd79 100755 --- a/indra/newview/llfloaterland.cpp +++ b/indra/newview/llfloaterland.cpp @@ -1791,10 +1791,15 @@ void LLPanelLandObjects::onCommitClean(LLUICtrl *caller, void* user_data) LLParcel* parcel = lop->mParcel->getParcel(); if (parcel) { - lop->mOtherTime = atoi(lop->mCleanOtherObjectsTime->getText().c_str()); + S32 return_time = atoi(lop->mCleanOtherObjectsTime->getText().c_str()); + // Only send return time if it has changed + if (return_time != lop->mOtherTime) + { + lop->mOtherTime = return_time; - parcel->setCleanOtherTime(lop->mOtherTime); - send_other_clean_time_message(parcel->getLocalID(), lop->mOtherTime); + parcel->setCleanOtherTime(lop->mOtherTime); + send_other_clean_time_message(parcel->getLocalID(), lop->mOtherTime); + } } } |