diff options
author | Bryan O'Sullivan <bos@lindenlab.com> | 2007-07-18 21:22:40 +0000 |
---|---|---|
committer | Bryan O'Sullivan <bos@lindenlab.com> | 2007-07-18 21:22:40 +0000 |
commit | ce7682c2a468e926d6b38e4f95bd289a8d26222c (patch) | |
tree | 80535a3916676294d640b4ce47c1895d0a27cd1b /indra/newview/llviewerregion.cpp | |
parent | e1ab7d8a30cc40cbd1d471c67def21508c82ff49 (diff) |
svn merge -r64837:65485 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance --> release
(only inside indra)
(josh) Original log message was:
svn merge -r64837:65485 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance
bos updated it to be:
svn merge -r64837:65269 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance
However, it appears it actually was:
svn merge -r64837:65485 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance
... missing some file additions.
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rw-r--r-- | indra/newview/llviewerregion.cpp | 80 |
1 files changed, 3 insertions, 77 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 7fed7ebe94..223286b1c9 100644 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -301,89 +301,15 @@ void LLViewerRegion::sendReliableMessage() gMessageSystem->sendReliable(mHost); } - -void LLViewerRegion::setAllowDamage(BOOL b) -{ - if (b) - { - mRegionFlags |= REGION_FLAGS_ALLOW_DAMAGE; - } - else - { - mRegionFlags &= ~REGION_FLAGS_ALLOW_DAMAGE; - } -} - - -void LLViewerRegion::setAllowLandmark(BOOL b) -{ - if (b) - { - mRegionFlags |= REGION_FLAGS_ALLOW_LANDMARK; - } - else - { - mRegionFlags &= ~REGION_FLAGS_ALLOW_LANDMARK; - } -} - -void LLViewerRegion::setAllowSetHome(BOOL b) -{ - if (b) - { - mRegionFlags |= REGION_FLAGS_ALLOW_SET_HOME; - } - else - { - mRegionFlags &= ~REGION_FLAGS_ALLOW_SET_HOME; - } -} - -void LLViewerRegion::setResetHomeOnTeleport(BOOL b) -{ - if (b) - { - mRegionFlags |= REGION_FLAGS_RESET_HOME_ON_TELEPORT; - } - else - { - mRegionFlags &= ~REGION_FLAGS_RESET_HOME_ON_TELEPORT; - } -} - -void LLViewerRegion::setSunFixed(BOOL b) -{ - if (b) - { - mRegionFlags |= REGION_FLAGS_SUN_FIXED; - } - else - { - mRegionFlags &= ~REGION_FLAGS_SUN_FIXED; - } -} - -void LLViewerRegion::setBlockFly(BOOL b) -{ - if (b) - { - mRegionFlags |= REGION_FLAGS_BLOCK_FLY; - } - else - { - mRegionFlags &= ~REGION_FLAGS_BLOCK_FLY; - } -} - -void LLViewerRegion::setAllowDirectTeleport(BOOL b) +void LLViewerRegion::setFlags(BOOL b, U32 flags) { if (b) { - mRegionFlags |= REGION_FLAGS_ALLOW_DIRECT_TELEPORT; + mRegionFlags |= flags; } else { - mRegionFlags &= ~REGION_FLAGS_ALLOW_DIRECT_TELEPORT; + mRegionFlags &= ~flags; } } |