diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-07-05 20:48:54 +0300 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-07-05 20:48:54 +0300 |
commit | 374de322bf8777121bc6ad12455980261a8b4b86 (patch) | |
tree | 5a1a973a8814d6cfa69d7c6e50a3de5d17680217 /indra/newview | |
parent | 9e703ac967a7805c6776cc983a4291a75e594e44 (diff) |
SL-19950 don't try to change fly state if it's not needed
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llagent.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index a80c285a6e..289a9caea4 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -481,7 +481,11 @@ void LLAgent::init() // *Note: this is where LLViewerCamera::getInstance() used to be constructed. - setFlying( gSavedSettings.getBOOL("FlyingAtExit") ); + bool is_flying = gSavedSettings.getBOOL("FlyingAtExit"); + if(is_flying) + { + setFlying(is_flying); + } *mEffectColor = LLUIColorTable::instance().getColor("EffectColor"); |