mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 23:34:15 +00:00
(svn r24142) -Feature [FS#3576]: Randomise count of passengers killed in a crash. (riffraffselbow)
This commit is contained in:
parent
a2b2bc3620
commit
a4b02d0a5d
@ -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.
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user