aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/ubOde
diff options
context:
space:
mode:
authorUbitUmarov2017-05-21 01:52:27 +0100
committerUbitUmarov2017-05-21 01:52:27 +0100
commit319ccf17c8cb20233e82ea0a49c4427aaefd7ac9 (patch)
tree512e2d5c1c0ef38e11f647cc1808776771beeee3 /OpenSim/Region/PhysicsModules/ubOde
parent on recover form nom finite avatar pos, don't add it physics it it had none (diff)
downloadopensim-SC-319ccf17c8cb20233e82ea0a49c4427aaefd7ac9.zip
opensim-SC-319ccf17c8cb20233e82ea0a49c4427aaefd7ac9.tar.gz
opensim-SC-319ccf17c8cb20233e82ea0a49c4427aaefd7ac9.tar.bz2
opensim-SC-319ccf17c8cb20233e82ea0a49c4427aaefd7ac9.tar.xz
add a bit more protection for broken scripts like ingen-e3s-v1.33
Diffstat (limited to 'OpenSim/Region/PhysicsModules/ubOde')
-rw-r--r--OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs
index 63bef7c..2e6a7db 100644
--- a/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs
+++ b/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs
@@ -243,6 +243,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
243 internal void ProcessFloatVehicleParam(Vehicle pParam, float pValue) 243 internal void ProcessFloatVehicleParam(Vehicle pParam, float pValue)
244 { 244 {
245 float len; 245 float len;
246 if(float.IsNaN(pValue) || float.IsInfinity(pValue))
247 return;
246 248
247 switch (pParam) 249 switch (pParam)
248 { 250 {
@@ -374,6 +376,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
374 internal void ProcessVectorVehicleParam(Vehicle pParam, Vector3 pValue) 376 internal void ProcessVectorVehicleParam(Vehicle pParam, Vector3 pValue)
375 { 377 {
376 float len; 378 float len;
379 if(!pValue.IsFinite())
380 return;
377 381
378 switch (pParam) 382 switch (pParam)
379 { 383 {