File diff r8353:d299efbe74ed → r8354:1f10016a71ca
src/network/network_server.cpp
Show inline comments
 
@@ -1298,22 +1298,22 @@ void NetworkPopulateCompanyInfo()
 
		_network_player_info[p->index].money = p->player_money;
 
		_network_player_info[p->index].performance = p->old_economy[0].performance_history;
 
	}
 

	
 
	// Go through all vehicles and count the type of vehicles
 
	FOR_ALL_VEHICLES(v) {
 
		if (!IsValidPlayer(v->owner)) continue;
 
		if (!IsValidPlayer(v->owner) || !v->IsPrimaryVehicle()) continue;
 
		byte type = 0;
 
		switch (v->type) {
 
			case VEH_TRAIN: type = 0; break;
 
			case VEH_ROAD: type = (v->cargo_type != CT_PASSENGERS) ? 1 : 2; break;
 
			case VEH_AIRCRAFT: type = 3; break;
 
			case VEH_SHIP: type = 4; break;
 
			default: continue;
 
		}
 
		if (IsEngineCountable(v)) _network_player_info[v->owner].num_vehicle[type]++;
 
		_network_player_info[v->owner].num_vehicle[type]++;
 
	}
 

	
 
	// Go through all stations and count the types of stations
 
	FOR_ALL_STATIONS(s) {
 
		if (IsValidPlayer(s->owner)) {
 
			NetworkPlayerInfo *npi = &_network_player_info[s->owner];