1
0
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:
2013-01-11 07:39:25 +00:00
parent 4ebbfc3de4
commit c00a400cc7
12 changed files with 127 additions and 11 deletions

View File

@@ -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. */