From a4b02d0a5d0557fef1758c43af22334d7dd59642 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Tue, 17 Apr 2012 19:44:47 +0000 Subject: (svn r24142) -Feature [FS#3576]: Randomise count of passengers killed in a crash. (riffraffselbow) --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 1db865ef9..bbc370b7a 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -200,7 +200,7 @@ uint Vehicle::Crash(bool flooded) SetWindowDirty(WC_VEHICLE_DETAILS, this->index); SetWindowDirty(WC_VEHICLE_DEPOT, this->tile); - return pass; + return RandomRange(pass + 1); // Randomise deceased passengers. } -- cgit v1.2.3-70-g09d2