# HG changeset patch # User michi_cc # Date 1334691887 0 # Node ID 3d3ef3d8ac3311167ea5d5b5cc4446646eadf646 # Parent 1f9ea0b68aa45936fdf279a447a0bc0cee4f0eb2 (svn r24142) -Feature [FS#3576]: Randomise count of passengers killed in a crash. (riffraffselbow) diff --git a/src/vehicle.cpp b/src/vehicle.cpp --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -200,7 +200,7 @@ SetWindowDirty(WC_VEHICLE_DETAILS, this->index); SetWindowDirty(WC_VEHICLE_DEPOT, this->tile); - return pass; + return RandomRange(pass + 1); // Randomise deceased passengers. }