mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
add a bit more protection for broken scripts like ingen-e3s-v1.33
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user