# HG changeset patch # User michi_cc # Date 2012-04-17 19:44:47 # Node ID 1aef34079c1f834a117dc986616a22f44210adf2 # Parent a595a403afc1341e3da81c2dbed35199ec624338 (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 @@ 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. }