summaryrefslogtreecommitdiff
path: root/src/npf.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-08 16:27:54 +0000
committerrubidium <rubidium@openttd.org>2007-03-08 16:27:54 +0000
commit36cea84b1108db28a7a61fc23e2e2020a64a89dd (patch)
treee32a4dc6207efbaacc5af4e5c41a353b98b9a897 /src/npf.cpp
parent05eb676f22c73cf870b8abec383985641bd815de (diff)
downloadopenttd-36cea84b1108db28a7a61fc23e2e2020a64a89dd.tar.xz
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
Diffstat (limited to 'src/npf.cpp')
-rw-r--r--src/npf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/npf.cpp b/src/npf.cpp
index 5138d6401..8ded2d8c2 100644
--- a/src/npf.cpp
+++ b/src/npf.cpp
@@ -888,7 +888,7 @@ void NPFFillWithOrderData(NPFFindStationOrTileData* fstd, Vehicle* v)
* 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);