(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 e4a3d284b2
commit 2fd3553d78
12 changed files with 73 additions and 68 deletions

View File

@@ -424,7 +424,7 @@ static void DrawPlayerVehiclesAmount(int player)
FOR_ALL_VEHICLES(v) {
if (v->owner == player) {
if (v->type == VEH_Train) {
if (v->subtype == 0)
if (v->subtype == TS_Front_Engine)
train++;
} else if (v->type == VEH_Road) {
road++;