diff options
Diffstat (limited to 'OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs index 53a39d7..078adeb 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | |||
@@ -668,13 +668,14 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
668 | AddChange(changes.VehicleVectorParam, fp); | 668 | AddChange(changes.VehicleVectorParam, fp); |
669 | } | 669 | } |
670 | 670 | ||
671 | public override void VehicleFlags(int param, bool remove) | 671 | public override void VehicleFlags(int param, bool value) |
672 | { | 672 | { |
673 | if (m_vehicle == null) | 673 | if (m_vehicle == null) |
674 | return; | 674 | return; |
675 | m_vehicle.ProcessVehicleFlags(param, remove); | 675 | strVehicleBoolParam bp = new strVehicleBoolParam(); |
676 | if (Body != IntPtr.Zero && !d.BodyIsEnabled(Body)) | 676 | bp.param = param; |
677 | d.BodyEnable(Body); | 677 | bp.value = value; |
678 | AddChange(changes.VehicleFlags, bp); | ||
678 | } | 679 | } |
679 | 680 | ||
680 | public void SetAcceleration(Vector3 accel) | 681 | public void SetAcceleration(Vector3 accel) |
@@ -2374,8 +2375,9 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2374 | changeShape(_pbs); | 2375 | changeShape(_pbs); |
2375 | } | 2376 | } |
2376 | else | 2377 | else |
2377 | */ | 2378 | */ |
2378 | DestroyBody(); | 2379 | DestroyBody(); |
2380 | Stop(); | ||
2379 | } | 2381 | } |
2380 | } | 2382 | } |
2381 | } | 2383 | } |
@@ -3287,7 +3289,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
3287 | 3289 | ||
3288 | public void AddChange(changes what, object arg) | 3290 | public void AddChange(changes what, object arg) |
3289 | { | 3291 | { |
3290 | _parent_scene.AddChange(this, what, arg); | 3292 | _parent_scene.AddChange((PhysicsActor) this, what, arg); |
3291 | } | 3293 | } |
3292 | 3294 | ||
3293 | 3295 | ||