Add feature to Continue flying upon standing, if the user was flying when they sat down.

A couple users said this could be handy.
Useful for birds, fairies, and otherwise flying critters.
This commit is contained in:
Inusaito Sayori
2012-12-24 05:24:57 -05:00
parent 60621a300c
commit 977f17a893
6 changed files with 42 additions and 21 deletions

View File

@@ -5385,7 +5385,10 @@ void process_avatar_sit_response(LLMessageSystem *mesgsys, void **user_data)
gAgentCamera.setForceMouselook(force_mouselook);
// Forcing turning off flying here to prevent flying after pressing "Stand"
// to stand up from an object. See EXT-1655.
gAgent.setFlying(FALSE);
// Unless the user wants to.
static LLCachedControl<bool> ContinueFlying("LiruContinueFlyingOnUnsit");
if (!ContinueFlying)
gAgent.setFlying(FALSE);
LLViewerObject* object = gObjectList.findObject(sitObjectID);
if (object)