mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 21:19:10 +00:00
(svn r24905) -Feature(ish): Implement station randomisation triggers.
This commit is contained in:
@@ -2810,6 +2810,7 @@ static void TrainEnterStation(Train *v, StationID station)
|
||||
|
||||
v->BeginLoading();
|
||||
|
||||
TriggerStationRandomisation(st, v->tile, SRT_TRAIN_ARRIVES);
|
||||
TriggerStationAnimation(st, v->tile, SAT_TRAIN_ARRIVES);
|
||||
}
|
||||
|
||||
@@ -3184,7 +3185,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
|
||||
}
|
||||
goto reverse_train_direction;
|
||||
} else {
|
||||
TryReserveRailTrack(gp.new_tile, TrackBitsToTrack(chosen_track));
|
||||
TryReserveRailTrack(gp.new_tile, TrackBitsToTrack(chosen_track), false);
|
||||
}
|
||||
} else {
|
||||
/* The wagon is active, simply follow the prev vehicle. */
|
||||
|
Reference in New Issue
Block a user