mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-21 12:39:47 +01:00
(svn r9875) -Fix (r9828): Only set carriage capacity if the wagon has not been refitted.
This commit is contained in:
parent
7d4be11516
commit
60a2c5280e
@ -221,7 +221,10 @@ void TrainConsistChanged(Vehicle* v)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
u->cargo_cap = GetVehicleProperty(u, 0x14, rvi_u->capacity);
|
if (u->cargo_type == rvi_u->cargo_type && u->cargo_subtype == 0) {
|
||||||
|
/* Set cargo capacity if we've not been refitted */
|
||||||
|
u->cargo_cap = GetVehicleProperty(u, 0x14, rvi_u->capacity);
|
||||||
|
}
|
||||||
|
|
||||||
/* check the vehicle length (callback) */
|
/* check the vehicle length (callback) */
|
||||||
uint16 veh_len = CALLBACK_FAILED;
|
uint16 veh_len = CALLBACK_FAILED;
|
||||||
|
Loading…
Reference in New Issue
Block a user