equal
deleted
inserted
replaced
1247 // Go through all vehicles and count the type of vehicles |
1247 // Go through all vehicles and count the type of vehicles |
1248 FOR_ALL_VEHICLES(v) { |
1248 FOR_ALL_VEHICLES(v) { |
1249 if (v->owner < MAX_PLAYERS) |
1249 if (v->owner < MAX_PLAYERS) |
1250 switch (v->type) { |
1250 switch (v->type) { |
1251 case VEH_Train: |
1251 case VEH_Train: |
1252 if (v->subtype == 0) |
1252 if (v->subtype == TS_Front_Engine) |
1253 _network_player_info[v->owner].num_vehicle[0]++; |
1253 _network_player_info[v->owner].num_vehicle[0]++; |
1254 break; |
1254 break; |
1255 case VEH_Road: |
1255 case VEH_Road: |
1256 if (v->cargo_type != CT_PASSENGERS) |
1256 if (v->cargo_type != CT_PASSENGERS) |
1257 _network_player_info[v->owner].num_vehicle[1]++; |
1257 _network_player_info[v->owner].num_vehicle[1]++; |