jet() parameter > 1
dev-ui
krzys-h 2013-03-01 21:35:58 +01:00
parent f729686539
commit 0864e44c7b
1 changed files with 2 additions and 0 deletions

View File

@ -2457,6 +2457,8 @@ bool CScript::rJet(CBotVar* var, CBotVar* result, int& exception, void* user)
float value;
value = var->GetValFloat();
if( value > 1.0f ) value = 1.0f;
physics->SetMotorSpeedY(value);
return true;