Fix llSetVehicleFloatParam to accept LSL_Float
0.6.0-stable
Melanie Thielker 2008-10-20 07:47:20 +00:00
parent e9134a050a
commit caf10245af
3 changed files with 4 additions and 4 deletions

View File

@ -5314,7 +5314,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
//CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in
//CFK 9/28: so these are not complete yet.
public void llSetVehicleFloatParam(int param, float value)
public void llSetVehicleFloatParam(int param, LSL_Float value)
{
m_host.AddScriptLPS(1);
@ -5322,7 +5322,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
if (m_host.ParentGroup.RootPart != null)
{
m_host.ParentGroup.RootPart.SetVehicleFloatParam(param, value);
m_host.ParentGroup.RootPart.SetVehicleFloatParam(param, (float)value);
}
}
}

View File

@ -339,7 +339,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llSetTorque(LSL_Vector torque, int local);
void llSetTouchText(string text);
void llSetVehicleFlags(int flags);
void llSetVehicleFloatParam(int param, float value);
void llSetVehicleFloatParam(int param, LSL_Float value);
void llSetVehicleRotationParam(int param, LSL_Rotation rot);
void llSetVehicleType(int type);
void llSetVehicleVectorParam(int param, LSL_Vector vec);

View File

@ -1554,7 +1554,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
m_LSL_Functions.llSetVehicleFlags(flags);
}
public void llSetVehicleFloatParam(int param, float value)
public void llSetVehicleFloatParam(int param, LSL_Float value)
{
m_LSL_Functions.llSetVehicleFloatParam(param, value);
}