mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
AI does not fear accelerating a bit too fast
This commit is contained in:
committed by
tmj-fstate
parent
a3af2453a0
commit
ea8b38489a
@@ -5732,8 +5732,9 @@ TController::UpdateSituation(double dt) {
|
||||
else if( ( vel > VelDesired )
|
||||
|| ( fAccGravity < -0.01 ?
|
||||
AccDesired < 0.0 :
|
||||
AbsAccS > AccDesired ) ) {
|
||||
(AbsAccS > AccDesired && AccDesired < 0.75) ) ) {
|
||||
// jak za bardzo przyspiesza albo prędkość przekroczona
|
||||
// dodany wyjatek na "pelna w przod"
|
||||
DecSpeed(); // pojedyncze cofnięcie pozycji, bo na zero to przesada
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user