summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-04-17 19:44:47 +0000
committermichi_cc <michi_cc@openttd.org>2012-04-17 19:44:47 +0000
commita4b02d0a5d0557fef1758c43af22334d7dd59642 (patch)
tree00ade587f48681f502d45212b98d9ce6ed6767bb /src/vehicle.cpp
parenta2b2bc36205868f836fb2599c401cdfd4dfa7c1e (diff)
downloadopenttd-a4b02d0a5d0557fef1758c43af22334d7dd59642.tar.xz
(svn r24142) -Feature [FS#3576]: Randomise count of passengers killed in a crash. (riffraffselbow)
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
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.
}