summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-13 18:26:09 +0000
committerrubidium <rubidium@openttd.org>2010-12-13 18:26:09 +0000
commitd2c7f91cbb2ec0c344de92e57c310f006079fcdb (patch)
treed040a5d3829d29fa09b97f6fbb8252bbffecdcbc /src
parent20364bcefacead2e3d6ed3acc910ec0433b85d6f (diff)
downloadopenttd-d2c7f91cbb2ec0c344de92e57c310f006079fcdb.tar.xz
(svn r21502) -Change/Fix [FS#3991] (r150, r18402): before r18402 a train crash caused 2 "driver" deaths and a flooding 4 (added in r150). In r18402 the counting was merged and the flooding code was taken for counting drivers. Given those numbers were inconsistent (unlike for other vehicles) we better use the real original amount of driver deaths instead of the erroneous amount.
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 7fd874732..46bbb1d8f 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -2773,7 +2773,7 @@ uint Train::Crash(bool flooded)
{
uint pass = 0;
if (this->IsFrontEngine()) {
- pass += 4; // driver
+ pass += 2; // driver
/* Remove the reserved path in front of the train if it is not stuck.
* Also clear all reserved tracks the train is currently on. */