diff options
author | Melanie | 2011-11-10 22:34:54 +0100 |
---|---|---|
committer | Melanie | 2011-11-10 23:03:05 +0000 |
commit | f5abae5ac67caefdc305cfa8551dfa749bf8b5c7 (patch) | |
tree | 099c0553e7b692217a1c7e014a10b8c62cdb6bee /OpenSim/Region/Framework | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-f5abae5ac67caefdc305cfa8551dfa749bf8b5c7.zip opensim-SC-f5abae5ac67caefdc305cfa8551dfa749bf8b5c7.tar.gz opensim-SC-f5abae5ac67caefdc305cfa8551dfa749bf8b5c7.tar.bz2 opensim-SC-f5abae5ac67caefdc305cfa8551dfa749bf8b5c7.tar.xz |
Implement nudging support for strafing motion
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index fc5141f..e662492 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1509,7 +1509,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1509 | 1509 | ||
1510 | if ((MovementFlag & (byte)(uint)DCF) == 0) | 1510 | if ((MovementFlag & (byte)(uint)DCF) == 0) |
1511 | { | 1511 | { |
1512 | if (DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_FORWARD_NUDGE || DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_BACKWARD_NUDGE) | 1512 | if (DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_FORWARD_NUDGE || DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_BACKWARD_NUDGE || |
1513 | DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_LEFT_NUDGE || DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_RIGHT_NUDGE) | ||
1513 | { | 1514 | { |
1514 | MovementFlag |= (byte)nudgehack; | 1515 | MovementFlag |= (byte)nudgehack; |
1515 | } | 1516 | } |
@@ -1522,7 +1523,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1522 | else | 1523 | else |
1523 | { | 1524 | { |
1524 | if ((MovementFlag & (byte)(uint)DCF) != 0 || | 1525 | if ((MovementFlag & (byte)(uint)DCF) != 0 || |
1525 | ((DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_FORWARD_NUDGE || DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_BACKWARD_NUDGE) | 1526 | ((DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_FORWARD_NUDGE || DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_BACKWARD_NUDGE || |
1527 | DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_LEFT_NUDGE || DCF == Dir_ControlFlags.DIR_CONTROL_FLAG_RIGHT_NUDGE) | ||
1526 | && ((MovementFlag & (byte)nudgehack) == nudgehack)) | 1528 | && ((MovementFlag & (byte)nudgehack) == nudgehack)) |
1527 | ) // This or is for Nudge forward | 1529 | ) // This or is for Nudge forward |
1528 | { | 1530 | { |