diff options
author | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
commit | 089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch) | |
tree | 0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/llinventory/llparcel.cpp | |
parent | Second Life viewer sources 1.16.0.5 (diff) | |
download | meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2 meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz |
Second Life viewer sources 1.17.0.12
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llinventory/llparcel.cpp | 17 |
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 | ||
319 | void LLParcel::setAllParcelFlags(U32 flags) | ||
320 | { | ||
321 | mParcelFlags = flags; | ||
322 | } | ||
323 | |||
319 | void LLParcel::setParcelFlag(U32 flag, BOOL b) | 324 | void 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"; |