src/roadveh_cmd.cpp
changeset 10328 7500e2e4c8ab
parent 10321 4a43d5022b7f
equal deleted inserted replaced
10327:761feb630a51 10328:7500e2e4c8ab
  2083 				case CT_GOODS: capacity /= 2; break;
  2083 				case CT_GOODS: capacity /= 2; break;
  2084 				default:       capacity /= 4; break;
  2084 				default:       capacity /= 4; break;
  2085 			}
  2085 			}
  2086 		}
  2086 		}
  2087 
  2087 
  2088 		if (capacity == 0) continue;
       
  2089 
       
  2090 		total_capacity += capacity;
  2088 		total_capacity += capacity;
  2091 
  2089 
  2092 		if (IsHumanCompany(v->owner) && new_cid != v->cargo_type) {
  2090 		if (IsHumanCompany(v->owner) && new_cid != v->cargo_type) {
  2093 			cost.AddCost(GetRefitCost(v->engine_type));
  2091 			cost.AddCost(GetRefitCost(v->engine_type));
  2094 		}
  2092 		}