diff options
author | michi_cc <michi_cc@openttd.org> | 2012-04-17 19:44:47 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-04-17 19:44:47 +0000 |
commit | a4b02d0a5d0557fef1758c43af22334d7dd59642 (patch) | |
tree | 00ade587f48681f502d45212b98d9ce6ed6767bb /src | |
parent | a2b2bc36205868f836fb2599c401cdfd4dfa7c1e (diff) | |
download | openttd-a4b02d0a5d0557fef1758c43af22334d7dd59642.tar.xz |
(svn r24142) -Feature [FS#3576]: Randomise count of passengers killed in a crash. (riffraffselbow)
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle.cpp | 2 |
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. } |