(svn r24905) -Feature(ish): Implement station randomisation triggers.

This commit is contained in:
2013-01-11 07:39:25 +00:00
parent 4ebbfc3de4
commit c00a400cc7
12 changed files with 127 additions and 11 deletions

View File

@@ -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);
}