1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

(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

@@ -1249,7 +1249,7 @@ void NetworkPopulateCompanyInfo(void)
if (v->owner < MAX_PLAYERS)
switch (v->type) {
case VEH_Train:
if (v->subtype == 0)
if (v->subtype == TS_Front_Engine)
_network_player_info[v->owner].num_vehicle[0]++;
break;
case VEH_Road: