The International Simutrans Forum

 

Author Topic: Bug: Parameter "increase_maintenance_by_percent" can not set correctly  (Read 515 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran jp

  • *
  • Posts: 353
  • Languages: ja
If "increase_maintenance_by_percent" is larger than 200 in .dat file, "increase_maintenance_by_percent" is set to 200. (The maintenance cost will eventually double)
For example, CartMailNew has increase_maintenance_by_percent set to 275 but it only rises to 100% like following image.


If "increase_maintenance_by_percent" is smaller than 200 in .dat file, "increase_maintenance_by_percent" is set to 100. (The maintenance cost will not rise at all)
If "increase_maintenance_by_percent" is not set in .dat file, the default setting is used. (This is correct behavior. The maintenance cost will eventually increase to 4 times in the default setting of 128Britain-Ex)

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18425
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Thank you for the report - I believe that I have now fixed this, which was, I think, caused by a rounding/loss of precision error.

Offline Ranran jp

  • *
  • Posts: 353
  • Languages: ja
I confirmed today's nightly build and it has been fixed. :thumbsup:
Thank you for the quick fix ^-^

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18425
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Splendid, thank you for confirming.