diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/script/script.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp index 977070f..64139f3 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -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; |