From 105e6283821ab8a30a981974ae5c56fda1781d8a Mon Sep 17 00:00:00 2001 From: Hirek Date: Mon, 6 Jan 2025 20:14:30 +0100 Subject: [PATCH] Another random stop variable randomization logic fix --- Train.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Train.cpp b/Train.cpp index 936c98e9..446a3fbe 100644 --- a/Train.cpp +++ b/Train.cpp @@ -6951,7 +6951,7 @@ bool TTrain::Update( double const Deltatime ) { if (fTachoVelocity >= 5) // jedzie fTachoVelocityJump = fTachoVelocity + (2.0 - LocalRandom(3) + LocalRandom(3)) * 0.5; - else if (1 <= fTachoVelocity < 5) + else if (fTachoVelocity < 5 && fTachoVelocity > 1) fTachoVelocityJump = Random(0, 4); // tu ma sie bujac jak wariat i zatrzymac na jakiejs predkosci // fTachoVelocityJump = 0; // stoi fTachoTimer = ff; // juz zmienil