diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2019-01-31 23:08:03 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-31 23:08:03 +0000 |
commit | 1e5a6765d9553d85e4acfb68999921791b8dd560 (patch) | |
tree | 91fb62a35b362ae8fd16dd09abc85223bf3d9ffd /src/script/api/script_bridge.hpp | |
parent | 029c48cf4a03b69838f3b347d0dcea9582f919e1 (diff) | |
download | openttd-1e5a6765d9553d85e4acfb68999921791b8dd560.tar.xz |
Change: Give AI/GSBridge::GetName an extra parameter to refer the vehicle type (#6988)
Diffstat (limited to 'src/script/api/script_bridge.hpp')
-rw-r--r-- | src/script/api/script_bridge.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/api/script_bridge.hpp b/src/script/api/script_bridge.hpp index e06928596..5327d4206 100644 --- a/src/script/api/script_bridge.hpp +++ b/src/script/api/script_bridge.hpp @@ -66,10 +66,12 @@ public: /** * Get the name of a bridge. * @param bridge_id The bridge to get the name of. + * @param vehicle_type The vehicle-type of bridge to get the name of. * @pre IsValidBridge(bridge_id). + * @pre vehicle_type == ScriptVehicle::VT_ROAD || vehicle_type == ScriptVehicle::VT_RAIL || vehicle_type == ScriptVehicle::VT_WATER * @return The name the bridge has. */ - static char *GetName(BridgeID bridge_id); + static char *GetName(BridgeID bridge_id, ScriptVehicle::VehicleType vehicle_type); /** * Get the maximum speed of a bridge. |