diff -r 70d78ac95d6c -r 7bd07f43b0e3 src/npf.cpp --- a/src/npf.cpp Mon Mar 19 09:33:17 2007 +0000 +++ b/src/npf.cpp Mon Mar 19 12:38:16 2007 +0000 @@ -869,7 +869,7 @@ return best_result; } -void InitializeNPF(void) +void InitializeNPF() { init_AyStar(&_npf_aystar, NPFHash, NPF_HASH_SIZE); _npf_aystar.loops_per_tick = 0; @@ -888,7 +888,7 @@ * dest_tile, not just any stop of that station. * So only for train orders to stations we fill fstd->station_index, for all * others only dest_coords */ - if (v->current_order.type == OT_GOTO_STATION && v->type == VEH_Train) { + if (v->current_order.type == OT_GOTO_STATION && v->type == VEH_TRAIN) { fstd->station_index = v->current_order.dest; /* Let's take the closest tile of the station as our target for trains */ fstd->dest_coords = CalcClosestStationTile(v->current_order.dest, v->tile);