From 2e26eb7e133300b5849ca97b7a1e646475cccb32 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 a0eb24d5..206a52d6 100644 --- a/Train.cpp +++ b/Train.cpp @@ -6921,7 +6921,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