aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llparcel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llinventory/llparcel.cpp')
-rw-r--r--linden/indra/llinventory/llparcel.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/linden/indra/llinventory/llparcel.cpp b/linden/indra/llinventory/llparcel.cpp
index 5b2052f..990e77d 100644
--- a/linden/indra/llinventory/llparcel.cpp
+++ b/linden/indra/llinventory/llparcel.cpp
@@ -316,6 +316,11 @@ void LLParcel::setLocalID(S32 local_id)
316 mLocalID = local_id; 316 mLocalID = local_id;
317} 317}
318 318
319void LLParcel::setAllParcelFlags(U32 flags)
320{
321 mParcelFlags = flags;
322}
323
319void LLParcel::setParcelFlag(U32 flag, BOOL b) 324void LLParcel::setParcelFlag(U32 flag, BOOL b)
320{ 325{
321 if (b) 326 if (b)
@@ -712,6 +717,16 @@ BOOL LLParcel::importStream(std::istream& input_stream)
712 LLString::convertToU32(value, setting); 717 LLString::convertToU32(value, setting);
713 setParcelFlag(PF_ALLOW_GROUP_SCRIPTS, setting); 718 setParcelFlag(PF_ALLOW_GROUP_SCRIPTS, setting);
714 } 719 }
720 else if ("allow_voice_chat" == keyword)
721 {
722 LLString::convertToU32(value, setting);
723 setParcelFlag(PF_ALLOW_VOICE_CHAT, setting);
724 }
725 else if ("use_estate_voice_chan" == keyword)
726 {
727 LLString::convertToU32(value, setting);
728 setParcelFlag(PF_USE_ESTATE_VOICE_CHAN, setting);
729 }
715 else if ("allow_scripts" == keyword) 730 else if ("allow_scripts" == keyword)
716 { 731 {
717 LLString::convertToU32(value, setting); 732 LLString::convertToU32(value, setting);
@@ -1104,6 +1119,8 @@ BOOL LLParcel::exportStream(std::ostream& output_stream)
1104 output_stream << "\t\t sound_local " << (getSoundLocal() ? 1 : 0) << "\n"; 1119 output_stream << "\t\t sound_local " << (getSoundLocal() ? 1 : 0) << "\n";
1105 output_stream << "\t\t allow_scripts " << (getAllowOtherScripts() ? 1 : 0) << "\n"; 1120 output_stream << "\t\t allow_scripts " << (getAllowOtherScripts() ? 1 : 0) << "\n";
1106 output_stream << "\t\t allow_group_scripts " << (getAllowGroupScripts() ? 1 : 0) << "\n"; 1121 output_stream << "\t\t allow_group_scripts " << (getAllowGroupScripts() ? 1 : 0) << "\n";
1122 output_stream << "\t\t allow_voice_chat " << (getVoiceEnabled() ? 1 : 0) << "\n";
1123 output_stream << "\t\t use_estate_voice_chan " << (getVoiceUseEstateChannel() ? 1 : 0) << "\n";
1107 output_stream << "\t\t for_sale " << (getForSale() ? 1 : 0) << "\n"; 1124 output_stream << "\t\t for_sale " << (getForSale() ? 1 : 0) << "\n";
1108 output_stream << "\t\t sell_w_objects " << (getSellWithObjects() ? 1 : 0) << "\n"; 1125 output_stream << "\t\t sell_w_objects " << (getSellWithObjects() ? 1 : 0) << "\n";
1109 output_stream << "\t\t draw_distance " << mDrawDistance << "\n"; 1126 output_stream << "\t\t draw_distance " << mDrawDistance << "\n";