parent
f729686539
commit
0864e44c7b
|
@ -2457,6 +2457,8 @@ bool CScript::rJet(CBotVar* var, CBotVar* result, int& exception, void* user)
|
||||||
float value;
|
float value;
|
||||||
|
|
||||||
value = var->GetValFloat();
|
value = var->GetValFloat();
|
||||||
|
if( value > 1.0f ) value = 1.0f;
|
||||||
|
|
||||||
physics->SetMotorSpeedY(value);
|
physics->SetMotorSpeedY(value);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue