Enable vehicle variable 61 for ships

Bump multi_part_ships feature version, add to documentation
This commit is contained in:
Jonathan G Rennison
2023-06-26 00:18:11 +01:00
parent e94f9699de
commit 3b2e917ca4
3 changed files with 7 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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(),
};