equal
deleted
inserted
replaced
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 |