(svn r1568) made an enum of train subtypes to make the code more readable

This commit is contained in:
bjarni
2005-01-19 19:15:03 +00:00
parent 640985ce04
commit 467e4b82bf
12 changed files with 73 additions and 68 deletions

View File

@@ -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)