summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-01-19 19:15:03 +0000
committerbjarni <bjarni@openttd.org>2005-01-19 19:15:03 +0000
commit2fd3553d78d6b93fb85d97ae8e98beef5418a9c4 (patch)
tree2bf58365c54d2375ef13ac173631a7846771dc03 /vehicle.c
parente4a3d284b21a5bbd4ff5c0ad920be28cd4701e8a (diff)
downloadopenttd-2fd3553d78d6b93fb85d97ae8e98beef5418a9c4.tar.xz
(svn r1568) made an enum of train subtypes to make the code more readable
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vehicle.c b/vehicle.c
index 688e78aa9..ef086d7b0 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -159,7 +159,7 @@ void AfterLoadVehicles()
VehiclePositionChanged(v);
if (v->type == VEH_Train) {
- if (v->subtype == 0)
+ if (v->subtype == TS_Front_Engine)
UpdateTrainAcceleration(v);
}
}
@@ -2012,7 +2012,7 @@ static void Load_VEHS()
FOR_ALL_VEHICLES(v) {
Vehicle *w;
- if (v->type != VEH_Train || v->subtype != 0)
+ if (v->type != VEH_Train || v->subtype != TS_Front_Engine)
continue;
for (w = v->next; w; w = w->next)