add a bit more protection for broken scripts like ingen-e3s-v1.33
parent
c7fdb2ec53
commit
319ccf17c8
|
@ -243,6 +243,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
|||
internal void ProcessFloatVehicleParam(Vehicle pParam, float pValue)
|
||||
{
|
||||
float len;
|
||||
if(float.IsNaN(pValue) || float.IsInfinity(pValue))
|
||||
return;
|
||||
|
||||
switch (pParam)
|
||||
{
|
||||
|
@ -374,6 +376,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
|||
internal void ProcessVectorVehicleParam(Vehicle pParam, Vector3 pValue)
|
||||
{
|
||||
float len;
|
||||
if(!pValue.IsFinite())
|
||||
return;
|
||||
|
||||
switch (pParam)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue