From 6328429aac8dede8e42226fb5938c5011dc1f052 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 May 2010 14:12:48 +0000 Subject: (svn r19881) -Fix [FS#3827]: pay for the rail/road when constructing tunnels and bridges --- src/ai/api/ai_bridge.hpp | 2 +- src/ai/api/ai_changelog.hpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ai') diff --git a/src/ai/api/ai_bridge.hpp b/src/ai/api/ai_bridge.hpp index e9daa27b4..19e6bbed1 100644 --- a/src/ai/api/ai_bridge.hpp +++ b/src/ai/api/ai_bridge.hpp @@ -86,7 +86,7 @@ public: static int32 GetMaxSpeed(BridgeID bridge_id); /** - * Get the new cost of a bridge. + * Get the new cost of a bridge, excluding the road and/or rail. * @param bridge_id The bridge to get the new cost of. * @param length The length of the bridge. * @pre IsValidBridge(bridge_id). diff --git a/src/ai/api/ai_changelog.hpp b/src/ai/api/ai_changelog.hpp index b8943a1da..c748066cd 100644 --- a/src/ai/api/ai_changelog.hpp +++ b/src/ai/api/ai_changelog.hpp @@ -27,8 +27,9 @@ * \li HasNext for all lists. * * Other changes: - * \li AIRoad::BuildRoadStation now allows overbuilding - * \li AIRoad::BuildDriveThroughRoadStation now allows overbuilding + * \li AIBridge::GetPrice now returns the price of the bridge without the cost for the rail or road. + * \li AIRoad::BuildRoadStation now allows overbuilding. + * \li AIRoad::BuildDriveThroughRoadStation now allows overbuilding. * \li AIEngine::GetPower can be used for road vehicles. * \li AIEngine::GetWeight can be used for road vehicles. * \li AIEngine::GetMaxTractiveEffort can be used for road vehicles. -- cgit v1.2.3-54-g00ecf