diff options
author | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-01-29 20:43:55 +0200 |
---|---|---|
committer | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-01-29 20:43:55 +0200 |
commit | 3e76862aaa0852d5fd34e2321c69c67df41b5f67 (patch) | |
tree | 52571d922b36a150c141dc4c0d3a7240578e8183 | |
parent | 092f93b0c1084edf68fc0536aa03a3c7b816505b (diff) |
Partial fix for normal (EXT-4722) Ability to fly in a parcel when flying is disabled in the About Land
- Added forced flying off when entering a parcel with no rights to fly in it.
--HG--
branch : product-engine
-rw-r--r-- | indra/newview/llviewerparcelmgr.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp index 9d7ccd99c6..b85b42c710 100644 --- a/indra/newview/llviewerparcelmgr.cpp +++ b/indra/newview/llviewerparcelmgr.cpp @@ -1591,6 +1591,14 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use instance->mTeleportInProgress = FALSE; instance->mTeleportFinishedSignal(gAgent.getPositionGlobal()); } + + // HACK: This makes agents drop from the sky if they enter a parcel + // which is set to no fly. + BOOL was_flying = gAgent.getFlying(); + if (was_flying && !parcel->getAllowFly()) + { + gAgent.setFlying(gAgent.canFly()); + } } } |