diff options
author | peter1138 <peter1138@openttd.org> | 2013-01-11 07:39:25 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2013-01-11 07:39:25 +0000 |
commit | c00a400cc7e7626a430ed65d29a47c02a7a14eaa (patch) | |
tree | 0936d13989bc82bcc8bf50026d2ba55f7afed7ee /src/vehicle.cpp | |
parent | 4ebbfc3de4a50b6cf73a7fe50dd17ac1e42efb92 (diff) | |
download | openttd-c00a400cc7e7626a430ed65d29a47c02a7a14eaa.tar.xz |
(svn r24905) -Feature(ish): Implement station randomisation triggers.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index d78942d32..562054753 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2001,7 +2001,10 @@ void Vehicle::LeaveStation() if (this->type == VEH_TRAIN && !(this->vehstatus & VS_CRASHED)) { /* Trigger station animation (trains only) */ - if (IsTileType(this->tile, MP_STATION)) TriggerStationAnimation(st, this->tile, SAT_TRAIN_DEPARTS); + if (IsTileType(this->tile, MP_STATION)) { + TriggerStationRandomisation(st, this->tile, SRT_TRAIN_DEPARTS); + TriggerStationAnimation(st, this->tile, SAT_TRAIN_DEPARTS); + } SetBit(Train::From(this)->flags, VRF_LEAVING_STATION); } |