Thanks for that, I'll have a look when I have more time.SirkoZ wrote:Brumi - the algorithm for bankrupting a company is in a file named economy.cpp - for version r21266 of trunk - it is line 465:
That's a good idea, I'm also annoyed by the fact that SimpleAI often tends to crush road vehicles, despite that there is quite a high penalty for level crossings in the pathfinder.SirkoZ wrote:Plus I've got another idea; if path-signals are selected for railway it would be beneficial for lorry drivers to build one on each end of single-rail station assembly such as this:
Placing signals in front of the stations is very easy, it can be done by adding this after line 51 in railbuilder.nut into cBuilder::BuildSingleRailStation:
Code: Select all
if (AIController.GetSetting("signaltype") == 2) {
success = success && AIRail.BuildSignal(stafront, depfront, AIRail.SIGNALTYPE_PBS);
}
This feature will most likely be there in the next version, maybe as a fourth option to the signal types if this causes jams.