Skip to content

Commit

Permalink
Add: Compatibility for ScriptOrder.GetOrderDistance
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuXarick committed Feb 2, 2023
1 parent 9fb87b5 commit 5bd3696
Show file tree
Hide file tree
Showing 29 changed files with 218 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/ai/compat_0.7.nut
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.0.nut
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.1.nut
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.10.nut
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.11.nut
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.2.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.3.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.4.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.5.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.6.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.7.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.8.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_1.9.nut
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_12.nut
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/ai/compat_13.nut
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,11 @@ AITown.GetCargoGoal <- function(town_id, towneffect_id)
if (!AICargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return AITown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
AIOrder._GetOrderDistance <- AIOrder.GetOrderDistance
AIOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < AIVehicle.VT_RAIL || vehicle_type > AIVehicle.VT_AIR) return AIMap.DistanceManhattan(origin_tile, dest_tile);
return AIOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.10.nut
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.11.nut
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.2.nut
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.3.nut
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.4.nut
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.5.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.6.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.7.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.8.nut
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_1.9.nut
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_12.nut
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
8 changes: 8 additions & 0 deletions bin/game/compat_13.nut
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,11 @@ GSTown.GetCargoGoal <- function(town_id, towneffect_id)
if (!GSCargo.IsValidTownEffect(towneffect_id)) return 0xFFFFFFFF;
return GSTown._GetCargoGoal(town_id, towneffect_id);
}

/* 14 tests whether the vehicle type is valid */
GSOrder._GetOrderDistance <- GSOrder.GetOrderDistance
GSOrder.GetOrderDistance <- function(vehicle_type, origin_tile, dest_tile)
{
if (vehicle_type < GSVehicle.VT_RAIL || vehicle_type > GSVehicle.VT_AIR) return GSMap.DistanceManhattan(origin_tile, dest_tile);
return GSOrder._GetOrderDistance(vehicle_type, origin_tile, dest_tile);
}
1 change: 1 addition & 0 deletions src/script/api/ai_changelog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* \li AIEngine::GetMaximumOrderDistance returns -1 for invalid engines instead of 0
* \li AIVehicle::GetMaximumOrderDistance returns -1 for invalid vehicles instead of 0
* \li AITown::GetCargoGoal returns -1 for invalid towns or invalid town effects instead of UINT32_MAX
* \li AIOrder::GetOrderDistance now tests the validity of the vehicle type, returning -1 for invalid vehicle types
*
* \b 13.0
*
Expand Down
1 change: 1 addition & 0 deletions src/script/api/game_changelog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* \li GSEngine::GetMaximumOrderDistance returns -1 for invalid engines instead of 0
* \li GSVehicle::GetMaximumOrderDistance returns -1 for invalid vehicles instead of 0
* \li GSTown::GetCargoGoal returns -1 for invalid towns or invalid town effects instead of UINT32_MAX
* \li GSOrder::GetOrderDistance now tests the validity of the vehicle type, returning -1 for invalid vehicle types
*
* \b 13.0
*
Expand Down

0 comments on commit 5bd3696

Please sign in to comment.