Satisfy Issue 271: Fly after teleport feature.
Add debug setting LiruFlyAfterTeleports Add Always fly after Teleports to General tab of System preferences. (Also, fixed tabs where spaces should be in settings.xml)
This commit is contained in:
@@ -6844,8 +6844,9 @@ void process_teleport_local(LLMessageSystem *msg,void**)
|
||||
}
|
||||
}
|
||||
|
||||
static LLCachedControl<bool> fly_after_tp(gSavedSettings, "LiruFlyAfterTeleport");
|
||||
// Sim tells us whether the new position is off the ground
|
||||
if (teleport_flags & TELEPORT_FLAGS_IS_FLYING)
|
||||
if (fly_after_tp || (teleport_flags & TELEPORT_FLAGS_IS_FLYING))
|
||||
{
|
||||
gAgent.setFlying(TRUE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user