diff options
author | frosch <frosch@openttd.org> | 2008-12-19 22:26:43 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-12-19 22:26:43 +0000 |
commit | c20e6d3a134efd95844022e7f471a1f13b7e7c37 (patch) | |
tree | b813bdcab3f27bb2340f88256ce1fef0c70876f8 /src | |
parent | f52d1bd0ba830f20fabc631ecb15ef63be44b9ab (diff) | |
download | openttd-c20e6d3a134efd95844022e7f471a1f13b7e7c37.tar.xz |
(svn r14695) -Cleanup: When NTP is not active there is no need to set up TrainTrackFollowerData.
Diffstat (limited to 'src')
-rw-r--r-- | src/train_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index c70a9b096..3e81cd842 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3136,9 +3136,6 @@ static bool CheckReverseTrain(Vehicle *v) return false; } - TrainTrackFollowerData fd; - FillWithStationData(&fd, v); - uint reverse_best = 0; assert(v->u.rail.track); @@ -3175,6 +3172,9 @@ static bool CheckReverseTrain(Vehicle *v) default: case VPF_NTP: { /* NTP */ + TrainTrackFollowerData fd; + FillWithStationData(&fd, v); + int i = _search_directions[FindFirstTrack(v->u.rail.track)][DirToDiagDir(v->direction)]; int best_track = -1; |