src/vehicle_gui.cpp
changeset 11066 942b9b820006
parent 11065 d322c7fa3a22
child 11157 a0173588b15e
equal deleted inserted replaced
11065:d322c7fa3a22 11066:942b9b820006
  1307 				 * height already allocated for the cargo of the first vehicle. */
  1307 				 * height already allocated for the cargo of the first vehicle. */
  1308 				uint height_extension = 15 - 11;
  1308 				uint height_extension = 15 - 11;
  1309 
  1309 
  1310 				/* Add space for the cargo amount for each part. */
  1310 				/* Add space for the cargo amount for each part. */
  1311 				for (const Vehicle *u = v; u != NULL; u = u->Next()) {
  1311 				for (const Vehicle *u = v; u != NULL; u = u->Next()) {
  1312 					height_extension += 11;
  1312 					if (u->cargo_cap != 0) height_extension += 11;
  1313 				}
  1313 				}
  1314 
  1314 
  1315 				ResizeWindow(this, 0, height_extension);
  1315 				ResizeWindow(this, 0, height_extension);
  1316 			} break;
  1316 			} break;
  1317 
  1317