(svn r14695) -Cleanup: When NTP is not active there is no need to set up TrainTrackFollowerData.
This commit is contained in:
@@ -3136,9 +3136,6 @@ static bool CheckReverseTrain(Vehicle *v)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
TrainTrackFollowerData fd;
|
|
||||||
FillWithStationData(&fd, v);
|
|
||||||
|
|
||||||
uint reverse_best = 0;
|
uint reverse_best = 0;
|
||||||
|
|
||||||
assert(v->u.rail.track);
|
assert(v->u.rail.track);
|
||||||
@@ -3175,6 +3172,9 @@ static bool CheckReverseTrain(Vehicle *v)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
case VPF_NTP: { /* NTP */
|
case VPF_NTP: { /* NTP */
|
||||||
|
TrainTrackFollowerData fd;
|
||||||
|
FillWithStationData(&fd, v);
|
||||||
|
|
||||||
int i = _search_directions[FindFirstTrack(v->u.rail.track)][DirToDiagDir(v->direction)];
|
int i = _search_directions[FindFirstTrack(v->u.rail.track)][DirToDiagDir(v->direction)];
|
||||||
|
|
||||||
int best_track = -1;
|
int best_track = -1;
|
||||||
|
Reference in New Issue
Block a user