forked from mirror/OpenTTD
(svn r1568) made an enum of train subtypes to make the code more readable
This commit is contained in:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user