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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user