~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/ai/api/ai_bridge.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Kooijman, Matthijs Kooijman
  • Date: 2009-10-01 22:52:59 UTC
  • mfrom: (1.1.8 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091001225259-5kpkp4sthbszpyif
[ Matthijs Kooijman ]
* New upstream release
* Use printf instead of echo -en in openttd-wrapper to make it POSIX
  compatible (Closes: #547758).
* Remove three patches that are now included in upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ai_bridge.cpp 16531 2009-06-07 15:26:33Z rubidium $ */
 
1
/* $Id: ai_bridge.cpp 17080 2009-08-05 23:57:41Z rubidium $ */
2
2
 
3
3
/** @file ai_bridge.cpp Implementation of AIBridge. */
4
4
 
139
139
{
140
140
        if (!IsValidBridge(bridge_id)) return -1;
141
141
 
142
 
        return length * _price.build_bridge * ::GetBridgeSpec(bridge_id)->price >> 8;
 
142
        return ::CalcBridgeLenCostFactor(length) * _price.build_bridge * ::GetBridgeSpec(bridge_id)->price >> 8;
143
143
}
144
144
 
145
145
/* static */ int32 AIBridge::GetMaxLength(BridgeID bridge_id)