Code: Select all
v->reliability < GetEngine(v->engine_type)->reliability * (100 - v->service_interval) / 100
I guess this seems counter-intuitive to me. It seems more natural to have the percentage the other way round, i.e. 90% producing the same result as above. Was the idea to make it work the same way as the number of days service interval, i.e. a larger number means less servicing?
And, while I'm on the topic of servicing, can anyone tell me if the behaviour of automatic servicing at depot (no orders and no depot force) has changed from TTD? It used to be that trains would decide to go to a depot at the most inconvenient time in their route. Now it seems they make in intelligent choice. Where's this in the code - I can't see it in vehicle.c? Is it something to do with pathfinding? I was going to update the wiki page on servicing.