(svn r11431) -Codechange: [NewGRF] Add support for changing rail vehicle user-defined bit mask (prop 25) via callback 36
This commit is contained in:
@@ -236,6 +236,8 @@ void TrainConsistChanged(Vehicle* v)
|
||||
u->cargo_cap = GetVehicleProperty(u, 0x14, rvi_u->capacity);
|
||||
}
|
||||
|
||||
u->u.rail.user_def_data = GetVehicleProperty(u, 0x25, rvi_u->user_def_data);
|
||||
|
||||
/* check the vehicle length (callback) */
|
||||
uint16 veh_len = CALLBACK_FAILED;
|
||||
if (HASBIT(EngInfo(u->engine_type)->callbackmask, CBM_VEHICLE_LENGTH)) {
|
||||
|
Reference in New Issue
Block a user