The International Simutrans Forum

 

Author Topic: Power Tunnels Demolition Cost (r5723)  (Read 1471 times)

0 Members and 1 Guest are viewing this topic.

Offline kierongreen

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 2314
Power Tunnels Demolition Cost (r5723)
« on: May 18, 2012, 06:53:53 AM »
r5723 introduces a bug where demolition costs are not calculated correctly in my opinion. Demolition cost should be the same as construction (which was true in 5722) - however now half the cost of a new powerline is added on, so if powerline tunnels cost 1000, and powerlines 350, then powerline tunnel demolition now costs 1175. I'm assuming my code was buggy in another aspect?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10001
  • Languages: De,EN,JP
Re: Power Tunnels Demolition Cost (r5723)
« Reply #1 on: May 18, 2012, 08:13:57 AM »
This is at least how all other costs from tunnels are calculated in the game. Otherwise removing powerlines from an underground crossing or such would be free. Anyway, not charging for underground can be introduced again.

The cahnge was due to two errors reported on the japanese forum: http://forum.japanese.simutrans.com/index.php?board=4.0

Offline kierongreen

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 2314
Re: Power Tunnels Demolition Cost (r5723)
« Reply #2 on: May 18, 2012, 08:17:51 AM »
Road and rail tunnels cost the same to demolish as they do to build I thought?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10001
  • Languages: De,EN,JP
Re: Power Tunnels Demolition Cost (r5723)
« Reply #3 on: May 19, 2012, 08:29:24 PM »
No they do not. But they should ...