Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alchemy
Alchemy Next
Commits
60990a5e
Commit
60990a5e
authored
Sep 02, 2021
by
Rye Mutt
🍞
Browse files
Add force enable fly option
parent
059fd356
Changes
3
Hide whitespace changes
Inline
Side-by-side
indra/newview/app_settings/settings_alchemy.xml
View file @
60990a5e
...
...
@@ -266,6 +266,17 @@
<key>
Value
</key>
<integer>
0
</integer>
</map>
<key>
AlchemyForceFly
</key>
<map>
<key>
Comment
</key>
<string>
Always allow flight
</string>
<key>
Persist
</key>
<integer>
1
</integer>
<key>
Type
</key>
<string>
Boolean
</string>
<key>
Value
</key>
<integer>
0
</integer>
</map>
<key>
AlchemyHudTextFadeDistance
</key>
<map>
<key>
Comment
</key>
...
...
indra/newview/llagent.cpp
View file @
60990a5e
...
...
@@ -787,6 +787,9 @@ BOOL LLAgent::canFly()
// [/RLVa:KB]
if
(
isGodlike
())
return
TRUE
;
static
LLCachedControl
<
bool
>
alchemy_force_fly
(
gSavedSettings
,
"AlchemyForceFly"
,
false
);
if
(
alchemy_force_fly
)
return
TRUE
;
LLViewerRegion
*
regionp
=
getRegion
();
if
(
regionp
&&
regionp
->
getBlockFly
())
return
FALSE
;
...
...
indra/newview/llviewerinput.cpp
View file @
60990a5e
...
...
@@ -28,6 +28,7 @@
#include
"llviewerinput.h"
#include
"alcontrolcache.h"
#include
"llappviewer.h"
#include
"llfloaterreg.h"
#include
"llmath.h"
...
...
@@ -87,7 +88,7 @@ bool agent_jump( EKeystate s )
if
(
time
<
FLY_TIME
||
frame_count
<=
FLY_FRAMES
||
gAgent
.
upGrabbed
()
||
!
gSavedSettings
.
getBOOL
(
"
AutomaticFly
"
)
)
||
!
ALControlCache
::
AutomaticFly
)
{
gAgent
.
moveUp
(
1
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment