Enable vehicle variable 61 for ships
Bump multi_part_ships feature version, add to documentation
This commit is contained in:
@@ -772,7 +772,7 @@ static uint32 VehicleGetVariable(Vehicle *v, const VehicleScopeResolver *object,
|
||||
}
|
||||
|
||||
case 0x61: // Get variable of n-th vehicle in chain [signed number relative to vehicle]
|
||||
if (!v->IsGroundVehicle() || parameter == 0x61) {
|
||||
if (!(v->IsGroundVehicle() || v->type == VEH_SHIP) || parameter == 0x61) {
|
||||
/* Not available */
|
||||
break;
|
||||
}
|
||||
|
@@ -70,7 +70,7 @@ extern const GRFFeatureInfo _grf_feature_list[] = {
|
||||
GRFFeatureInfo("town_zone_callback", 1, GFTOF_TOWN_ZONE_CALLBACK),
|
||||
GRFFeatureInfo("varaction2_towns_town_xy", 1),
|
||||
GRFFeatureInfo("more_varaction2_types", 1, GFTOF_MORE_VARACTION2_TYPES),
|
||||
GRFFeatureInfo("multi_part_ships", 1, GFTOF_MULTI_PART_SHIPS),
|
||||
GRFFeatureInfo("multi_part_ships", 2, GFTOF_MULTI_PART_SHIPS),
|
||||
GRFFeatureInfo("more_stations_per_grf", 1),
|
||||
GRFFeatureInfo(),
|
||||
};
|
||||
|
Reference in New Issue
Block a user