network_server.c
changeset 1067 a083a6dd1419
parent 1045 a8de7d7a83f1
child 1093 e8d26c7dc42f
equal deleted inserted replaced
1066:aad3c6ad147f 1067:a083a6dd1419
  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]++;