diff --git a/libsecondlife/AgentManagerMovement.cs b/libsecondlife/AgentManagerMovement.cs
index f3775502..0964f7a9 100644
--- a/libsecondlife/AgentManagerMovement.cs
+++ b/libsecondlife/AgentManagerMovement.cs
@@ -407,6 +407,13 @@ namespace libsecondlife
get { return (updateInterval != 0); }
}
+ /// Reset movement controls every time we send an update
+ public bool AutoResetControls
+ {
+ get { return autoResetControls; }
+ set { autoResetControls = value; }
+ }
+
#endregion Properties
/// Agent camera controls
@@ -446,6 +453,7 @@ namespace libsecondlife
/// Timer for sending AgentUpdate packets
private Timer updateTimer;
private int updateInterval;
+ private bool autoResetControls = true;
/// Default constructor
public AgentMovement(SecondLife client)
@@ -634,7 +642,9 @@ namespace libsecondlife
Client.Network.SendPacket(update, simulator);
- ResetControlFlags();
+ if (autoResetControls) {
+ ResetControlFlags();
+ }
}
}